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

Unified Diff: cc/animation/animation.h

Issue 13465014: LayerTreeHost::SetAnimationEvents should use AnimationRegistrar (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« no previous file with comments | « no previous file | cc/animation/animation.cc » ('j') | cc/animation/layer_animation_controller.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation.h
diff --git a/cc/animation/animation.h b/cc/animation/animation.h
index 6a0f772bbc9da4caac76dca8d91e3944adcb42e2..990b9ef82cb53e4308498547765a47140b45f232 100644
--- a/cc/animation/animation.h
+++ b/cc/animation/animation.h
@@ -107,6 +107,15 @@ class CC_EXPORT Animation {
needs_synchronized_start_time_ = needs_synchronized_start_time;
}
+ // This is true for animations running on the main thread when the Finished
+ // event sent by the corresponding impl animation has been received.
+ bool received_finished_event() const {
+ return received_finished_event_;
+ }
+ void set_received_finished_event(bool received_finished_event) {
+ received_finished_event_ = received_finished_event;
+ }
+
// Takes the given absolute time, and using the start time and the number
// of iterations, returns the relative time in the current iteration.
double TrimTimeToCurrentIteration(double monotonic_time) const;
@@ -158,6 +167,7 @@ class CC_EXPORT Animation {
double time_offset_;
bool needs_synchronized_start_time_;
+ bool received_finished_event_;
// When an animation is suspended, it behaves as if it is paused and it also
// ignores all run state changes until it is resumed. This is used for testing
« no previous file with comments | « no previous file | cc/animation/animation.cc » ('j') | cc/animation/layer_animation_controller.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698