Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Unified Diff: third_party/WebKit/Source/core/animation/CompositorAnimations.cpp

Issue 2335253002: Push CompositorFilterOperations creation out of GraphicsLayer (Closed)
Patch Set: The right FilterOperations Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/animation/CompositorAnimations.cpp
diff --git a/third_party/WebKit/Source/core/animation/CompositorAnimations.cpp b/third_party/WebKit/Source/core/animation/CompositorAnimations.cpp
index 3caf78e50e8a825a9a3b55170ae7f817756d5144..cffa41ac1f0995190ba92a63e18654a474a40d77 100644
--- a/third_party/WebKit/Source/core/animation/CompositorAnimations.cpp
+++ b/third_party/WebKit/Source/core/animation/CompositorAnimations.cpp
@@ -419,10 +419,10 @@ namespace {
void addKeyframeToCurve(CompositorFilterAnimationCurve& curve, Keyframe::PropertySpecificKeyframe* keyframe,
const AnimatableValue* value, const TimingFunction& keyframeTimingFunction)
{
- CompositorFilterOperations ops;
- toCompositorFilterOperations(toAnimatableFilterOperations(value)->operations(), &ops);
-
- CompositorFilterKeyframe filterKeyframe(keyframe->offset(), std::move(ops), keyframeTimingFunction);
+ CompositorFilterKeyframe filterKeyframe(
+ keyframe->offset(),
+ toCompositorFilterOperations(toAnimatableFilterOperations(value)->operations()),
+ keyframeTimingFunction);
curve.addKeyframe(filterKeyframe);
}

Powered by Google App Engine
This is Rietveld 408576698