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

Unified Diff: cc/scheduler/scheduler_state_machine.h

Issue 23463014: cc: Poll for state that triggers draws (synchronous compositor only) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: add more test expectations; formatting; Created 7 years, 3 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 aaefa37bc67bad6c2634d8b62a3c44bd59a64c57..cc48257e62fd3692c85f0d5dcf6411590198b281 100644
--- a/cc/scheduler/scheduler_state_machine.h
+++ b/cc/scheduler/scheduler_state_machine.h
@@ -121,6 +121,11 @@ class CC_EXPORT SchedulerStateMachine {
void DidLeaveBeginFrame();
bool inside_begin_frame() const { return inside_begin_frame_; }
+ // PollForAnticipatedDrawTriggers is used by the synchronous compositor to
+ // avoid requesting BeginImplFrames when we won't actually draw but still
+ // need to advance our state at vsync intervals.
+ void PollForAnticipatedDrawTriggers();
+
// Indicates whether the LayerTreeHostImpl is visible.
void SetVisible(bool visible);
« 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