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

Unified Diff: cc/animation/animation.h

Issue 1734063003: Share animations from compositor to main thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win trybot failure 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
« no previous file with comments | « no previous file | cc/animation/animation.cc » ('j') | no next file with comments »
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 645b71f613562ec5b5aa80213409a3f75ceb312f..c1463223b74a36d596dde789458bee7b960c9dc3 100644
--- a/cc/animation/animation.h
+++ b/cc/animation/animation.h
@@ -27,7 +27,10 @@ class CC_EXPORT Animation {
// the STARTING state, and then into the RUNNING state. RUNNING animations may
// toggle between RUNNING and PAUSED, and may be stopped by moving into either
// the ABORTED or FINISHED states. A FINISHED animation was allowed to run to
- // completion, but an ABORTED animation was not.
+ // completion, but an ABORTED animation was not. An animation in the state
+ // ABORTED_BUT_NEEDS_COMPLETION is an animation that was aborted for
+ // some reason, but needs to be finished. Currently this is for impl-only
+ // scroll offset animations that need to be completed on the main thread.
enum RunState {
WAITING_FOR_TARGET_AVAILABILITY = 0,
WAITING_FOR_DELETION,
@@ -36,8 +39,9 @@ class CC_EXPORT Animation {
PAUSED,
FINISHED,
ABORTED,
+ ABORTED_BUT_NEEDS_COMPLETION,
// This sentinel must be last.
- LAST_RUN_STATE = ABORTED
+ LAST_RUN_STATE = ABORTED_BUT_NEEDS_COMPLETION
};
enum Direction {
« no previous file with comments | « no previous file | cc/animation/animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698