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

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

Issue 2869183002: Initial implementation of WorkletAnimation (Closed)
Patch Set: Rebase Created 3 years, 6 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/KeyframeEffectReadOnly.cpp
diff --git a/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.cpp b/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.cpp
index b2b42cd88563ec3f5be4d764d043f55a49bf5cdd..59183784322c3466856a48af2208dc66cd11ca74 100644
--- a/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.cpp
+++ b/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.cpp
@@ -280,7 +280,8 @@ bool KeyframeEffectReadOnly::MaybeStartAnimationOnCompositor(
int group,
double start_time,
double current_time,
- double animation_playback_rate) {
+ double animation_playback_rate,
+ CompositorAnimationPlayer* compositor_player) {
DCHECK(!HasActiveAnimationsOnCompositor());
if (!IsCandidateForAnimationOnCompositor(animation_playback_rate))
return false;
@@ -288,7 +289,7 @@ bool KeyframeEffectReadOnly::MaybeStartAnimationOnCompositor(
return false;
CompositorAnimations::StartAnimationOnCompositor(
*target_, group, start_time, current_time, SpecifiedTiming(),
- *GetAnimation(), *Model(), compositor_animation_ids_,
+ GetAnimation(), compositor_player, *Model(), compositor_animation_ids_,
animation_playback_rate);
DCHECK(!compositor_animation_ids_.IsEmpty());
return true;

Powered by Google App Engine
This is Rietveld 408576698