diff options
author | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-12 01:43:06 +0000 |
---|---|---|
committer | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-12 01:44:17 +0000 |
commit | 174c6d466c98f31a8f1017241499a23038297f38 (patch) | |
tree | 9c37260847c0bee1b94a462038ff7dc065324593 /cc/trees/layer_tree_host_single_thread_client.h | |
parent | f83ef232a24922c700fe63357ccddcb700a01c27 (diff) | |
download | chromium_src-174c6d466c98f31a8f1017241499a23038297f38.zip chromium_src-174c6d466c98f31a8f1017241499a23038297f38.tar.gz chromium_src-174c6d466c98f31a8f1017241499a23038297f38.tar.bz2 |
Make SingleThreadProxy a SchedulerClient
This makes ui::Compositor no longer in charge of
scheduling commits and draws, deferring it to cc::Scheduler.
Other compositors that use SingleThreadProxy are left calling composite
synchronously and now pass a flag to indicate that this is their
intention. This patch doesn't remove synchronous composite, but now
makes it mutually exclusive with scheduling.
BUG=329552, 287250
Review URL: https://codereview.chromium.org/134623005
Cr-Commit-Position: refs/heads/master@{#288866}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288866 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/trees/layer_tree_host_single_thread_client.h')
-rw-r--r-- | cc/trees/layer_tree_host_single_thread_client.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/trees/layer_tree_host_single_thread_client.h b/cc/trees/layer_tree_host_single_thread_client.h index cb61450..dbca28c 100644 --- a/cc/trees/layer_tree_host_single_thread_client.h +++ b/cc/trees/layer_tree_host_single_thread_client.h @@ -10,10 +10,10 @@ namespace cc { class LayerTreeHostSingleThreadClient { public: // Request that the client schedule a composite. - virtual void ScheduleComposite() = 0; + virtual void ScheduleComposite() {} // Request that the client schedule a composite now, and calculate appropriate // delay for potential future frame. - virtual void ScheduleAnimation() = 0; + virtual void ScheduleAnimation() {} // Called whenever the compositor posts a SwapBuffers (either full or // partial). After DidPostSwapBuffers(), exactly one of |