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

Unified Diff: cc/scheduler/scheduler_state_machine.h

Issue 14195025: Keep vsync enabled while there is a pending requestAnimationFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | « cc/scheduler/scheduler.cc ('k') | cc/scheduler/scheduler_state_machine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler_state_machine.h
diff --git a/cc/scheduler/scheduler_state_machine.h b/cc/scheduler/scheduler_state_machine.h
index 55581a457232b46732f098f4a912712cb5331f81..f73576bbad87552ba2e2f61ec84143086565ac01 100644
--- a/cc/scheduler/scheduler_state_machine.h
+++ b/cc/scheduler/scheduler_state_machine.h
@@ -102,6 +102,8 @@ class CC_EXPORT SchedulerStateMachine {
// thread to main.
void SetNeedsCommit();
+ void SetAnimateRequested();
+
// As SetNeedsCommit(), but ensures the BeginFrame will definitely happen even
// if we are not visible. After this call we expect to go through the forced
// commit flow and then return to waiting for a non-forced BeginFrame to
@@ -185,6 +187,7 @@ class CC_EXPORT SchedulerStateMachine {
bool can_draw_;
bool has_pending_tree_;
bool draw_if_possible_failed_;
+ bool animate_requested_;
TextureState texture_state_;
OutputSurfaceState output_surface_state_;
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | cc/scheduler/scheduler_state_machine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698