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

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

Issue 2869183002: Initial implementation of WorkletAnimation (Closed)
Patch Set: Use CheckCanStartAnimationOnCompositor 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 3d040105585a29196e2af6008743fa282e6fee5b..0d7ac29f95db69693817381ec56d983a9a3c1b1e 100644
--- a/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.cpp
+++ b/third_party/WebKit/Source/core/animation/KeyframeEffectReadOnly.cpp
@@ -295,13 +295,14 @@ void KeyframeEffectReadOnly::StartAnimationOnCompositor(
int group,
double start_time,
double current_time,
- double animation_playback_rate) {
+ double animation_playback_rate,
+ CompositorAnimationPlayer* compositor_player) {
DCHECK(!HasActiveAnimationsOnCompositor());
DCHECK(CheckCanStartAnimationOnCompositor(animation_playback_rate).Ok());
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());
}

Powered by Google App Engine
This is Rietveld 408576698