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

Unified Diff: cc/animation/animation_player.h

Issue 1734063003: Share animations from compositor to main thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make NotifyAnimationTakeover pure virtual Created 4 years, 10 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: cc/animation/animation_player.h
diff --git a/cc/animation/animation_player.h b/cc/animation/animation_player.h
index 97883acde42a756e5edd538422fa77402475986c..eafe294831cc7165c919fdc28c653178c7dabfbd 100644
--- a/cc/animation/animation_player.h
+++ b/cc/animation/animation_player.h
@@ -12,6 +12,7 @@
#include "base/memory/ref_counted.h"
#include "base/time/time.h"
#include "cc/animation/animation.h"
+#include "cc/animation/animation_curve.h"
#include "cc/base/cc_export.h"
namespace cc {
@@ -69,7 +70,8 @@ class CC_EXPORT AnimationPlayer : public base::RefCounted<AnimationPlayer>,
void PauseAnimation(int animation_id, double time_offset);
void RemoveAnimation(int animation_id);
void AbortAnimation(int animation_id);
- void AbortAnimations(TargetProperty::Type target_property);
+ void AbortAnimations(TargetProperty::Type target_property,
+ bool needs_completion);
void PushPropertiesTo(AnimationPlayer* player_impl);
@@ -83,6 +85,9 @@ class CC_EXPORT AnimationPlayer : public base::RefCounted<AnimationPlayer>,
void NotifyAnimationAborted(base::TimeTicks monotonic_time,
TargetProperty::Type target_property,
int group);
+ void NotifyAnimationTakeover(base::TimeTicks monotonic_time,
+ double animation_start_time,
+ scoped_ptr<AnimationCurve> curve);
// Whether this player has animations waiting to get sent to LAC.
bool has_pending_animations_for_testing() const {

Powered by Google App Engine
This is Rietveld 408576698