[webkit-changes] [WebKit/WebKit] a72ec6: [web-animations] add a class to store accelerated ...

Antoine Quint noreply at github.com
Thu Mar 2 08:06:10 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a72ec6fd7a8a6760edb59b3fb9ee079ac58b4b57
      https://github.com/WebKit/WebKit/commit/a72ec6fd7a8a6760edb59b3fb9ee079ac58b4b57
  Author: Antoine Quint <graouts at webkit.org>
  Date:   2023-03-02 (Thu, 02 Mar 2023)

  Changed paths:
    M Source/WebCore/Headers.cmake
    M Source/WebCore/SourcesCocoa.txt
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebCore/platform/animation/AcceleratedEffect.cpp
    M Source/WebCore/platform/animation/AcceleratedEffect.h
    A Source/WebCore/platform/animation/AcceleratedEffectStack.h
    A Source/WebCore/platform/animation/AcceleratedEffectStack.mm

  Log Message:
  -----------
  [web-animations] add a class to store accelerated effects and base values
https://bugs.webkit.org/show_bug.cgi?id=253238

Reviewed by Dean Jackson.

Add a new AcceleratedEffectStack class which we will use to store a sorted stack
of accelerated effects and the base values to be used for blending on platform layers.

Since there are separate layers for backdrop-filter and all other accelerated properties,
we separate the set of effects passed to AcceleratedEffectStack::setEffects() between
effects that will target primary layers and those affecting backdrop layers.

* Source/WebCore/Headers.cmake:
* Source/WebCore/SourcesCocoa.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/platform/animation/AcceleratedEffect.cpp:
(WebCore::AcceleratedEffect::copyWithProperties):
(WebCore::AcceleratedEffect::AcceleratedEffect):
* Source/WebCore/platform/animation/AcceleratedEffect.h:
* Source/WebCore/platform/animation/AcceleratedEffectStack.h: Added.
(WebCore::AcceleratedEffectStack::primaryLayerEffects const):
(WebCore::AcceleratedEffectStack::backdropLayerEffects const):
(WebCore::AcceleratedEffectStack::baseValues):
* Source/WebCore/platform/animation/AcceleratedEffectStack.mm: Added.
(WebCore::AcceleratedEffectStack::AcceleratedEffectStack):
(WebCore::AcceleratedEffectStack::~AcceleratedEffectStack):
(WebCore::AcceleratedEffectStack::hasEffects const):
(WebCore::AcceleratedEffectStack::setEffects):
(WebCore::AcceleratedEffectStack::setBaseValues):

Canonical link: https://commits.webkit.org/261067@main




More information about the webkit-changes mailing list