diff options
author | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-22 18:16:22 +0000 |
---|---|---|
committer | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-22 18:18:52 +0000 |
commit | aeeedad4f8d90b2af1b2299b70ed35cd4877af64 (patch) | |
tree | 34fb17c53043f67c187d6321587a5257cd442f95 /cc/trees/layer_tree_host_single_thread_client.h | |
parent | 3626bc39d629245a782c61ba0bc668583778e392 (diff) | |
download | chromium_src-aeeedad4f8d90b2af1b2299b70ed35cd4877af64.zip chromium_src-aeeedad4f8d90b2af1b2299b70ed35cd4877af64.tar.gz chromium_src-aeeedad4f8d90b2af1b2299b70ed35cd4877af64.tar.bz2 |
Make SingleThreadProxy a SchedulerClient
All 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.
Only cc unittests are exercising this code at this point, although it
also unifies a lot of the code for CompositeImmediately with the
scheduled path.
BUG=329552, 287250
Review URL: https://codereview.chromium.org/134623005
Cr-Commit-Position: refs/heads/master@{#291451}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291451 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 |