[webkit-changes] [WebKit/WebKit] 97485e: [web-animations] allow an AcceleratedEffect to be ...

Antoine Quint noreply at github.com
Thu Mar 9 02:40:41 PST 2023


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

  Changed paths:
    M Source/WebCore/platform/animation/AcceleratedEffect.cpp
    M Source/WebCore/platform/animation/AcceleratedEffect.h
    M Source/WebCore/platform/animation/AcceleratedEffectValues.cpp
    M Source/WebCore/platform/animation/AcceleratedEffectValues.h
    M Source/WebCore/platform/graphics/filters/FilterOperations.cpp
    M Source/WebCore/platform/graphics/filters/FilterOperations.h
    M Source/WebCore/rendering/PathOperation.cpp
    M Source/WebCore/rendering/PathOperation.h
    M Source/WebCore/rendering/style/BasicShapes.cpp
    M Source/WebCore/rendering/style/BasicShapes.h

  Log Message:
  -----------
  [web-animations] allow an AcceleratedEffect to be cloned
https://bugs.webkit.org/show_bug.cgi?id=253567

Reviewed by Dean Jackson.

When any AcceleratedEffect object will be decoded as part of the remote layer tree transaction,
we will need to transfer ownership to the thread used to resolve animations. We need to clone
any ref-counted object that would otherwise be marked as having been created on the main thread.

* Source/WebCore/platform/animation/AcceleratedEffect.cpp:
(WebCore::AcceleratedEffectKeyframe::clone const):
(WebCore::AcceleratedEffect::clone const):
(WebCore::AcceleratedEffect::copyWithProperties const):
(WebCore::AcceleratedEffect::copyWithProperties): Deleted.
* Source/WebCore/platform/animation/AcceleratedEffect.h:
* Source/WebCore/platform/animation/AcceleratedEffectValues.cpp:
(WebCore::AcceleratedEffectValues::clone const):
(WebCore::nonCalculatedLengthPoint): Deleted.
* Source/WebCore/platform/animation/AcceleratedEffectValues.h:
* Source/WebCore/platform/graphics/filters/FilterOperations.cpp:
(WebCore::FilterOperations::FilterOperations):
* Source/WebCore/platform/graphics/filters/FilterOperations.h:
(WebCore::FilterOperations::FilterOperations):
* Source/WebCore/rendering/PathOperation.cpp:
(WebCore::ReferencePathOperation::clone const):
(WebCore::RayPathOperation::clone const):
* Source/WebCore/rendering/PathOperation.h:
* Source/WebCore/rendering/style/BasicShapes.cpp:
(WebCore::BasicShapeCircle::clone const):
(WebCore::BasicShapeEllipse::clone const):
(WebCore::BasicShapePolygon::clone const):
(WebCore::BasicShapePath::clone const):
(WebCore::BasicShapeInset::clone const):
* Source/WebCore/rendering/style/BasicShapes.h:

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




More information about the webkit-changes mailing list