diff options
author | brianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-12 05:27:52 +0000 |
---|---|---|
committer | brianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-12 05:27:52 +0000 |
commit | 02de8f45bf1a1fd1760a3fa3dbc12c106f0cbe05 (patch) | |
tree | f2210c0bcd0a627012173d711d89b5e7ccf0cf3c /cc/scheduler/scheduler_state_machine.h | |
parent | 5582b8a2b33ff099a2cee62a5abb92865c330189 (diff) | |
download | chromium_src-02de8f45bf1a1fd1760a3fa3dbc12c106f0cbe05.zip chromium_src-02de8f45bf1a1fd1760a3fa3dbc12c106f0cbe05.tar.gz chromium_src-02de8f45bf1a1fd1760a3fa3dbc12c106f0cbe05.tar.bz2 |
cc: Poll for state that triggers draws (synchronous compositor only)
This adds Scheduler::PollForAnticipatedDrawTriggers which is used
by the synchronous compositor to avoid requesting BeginImplFrames
when we might not actually draw new content, but still need to
monitor state that might trigger a draw at vsync intervals.
This can occur, for example, when the last swap used incomplete tiles
(checkerboards or low-quality) or when a commit is aborted and we
want to wait a vsync before starting the next commit.
BUG=284810
Review URL: https://chromiumcodereview.appspot.com/23463014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222711 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/scheduler/scheduler_state_machine.h')
-rw-r--r-- | cc/scheduler/scheduler_state_machine.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/scheduler/scheduler_state_machine.h b/cc/scheduler/scheduler_state_machine.h index aaefa37..cc48257 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); |