summaryrefslogtreecommitdiffstats
path: root/android_webview
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-07 03:15:45 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-07 03:15:45 +0000
commit5cd9ce11fc761bac948c125820d7c3aa2c9314bc (patch)
tree0a09616ba8700887038a96bff5c8d0cc2580dd24 /android_webview
parent00cfda9fe13085a284a400f01900937302547e39 (diff)
downloadchromium_src-5cd9ce11fc761bac948c125820d7c3aa2c9314bc.zip
chromium_src-5cd9ce11fc761bac948c125820d7c3aa2c9314bc.tar.gz
chromium_src-5cd9ce11fc761bac948c125820d7c3aa2c9314bc.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 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287950 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview')
-rw-r--r--android_webview/browser/hardware_renderer.cc7
-rw-r--r--android_webview/browser/hardware_renderer.h2
2 files changed, 5 insertions, 4 deletions
diff --git a/android_webview/browser/hardware_renderer.cc b/android_webview/browser/hardware_renderer.cc
index 818d3c5..86dd667 100644
--- a/android_webview/browser/hardware_renderer.cc
+++ b/android_webview/browser/hardware_renderer.cc
@@ -93,8 +93,11 @@ HardwareRenderer::HardwareRenderer(SharedRendererState* state)
// Webview does not own the surface so should not clear it.
settings.should_clear_root_render_pass = false;
- layer_tree_host_ = cc::LayerTreeHost::CreateSingleThreaded(
- this, this, NULL, settings, NULL);
+ // TODO(enne): Update this this compositor to use a synchronous scheduler.
+ settings.single_thread_proxy_scheduler = false;
+
+ layer_tree_host_ =
+ cc::LayerTreeHost::CreateSingleThreaded(this, this, NULL, settings, NULL);
layer_tree_host_->SetRootLayer(root_layer_);
layer_tree_host_->SetLayerTreeHostClientReady();
layer_tree_host_->set_has_transparent_background(true);
diff --git a/android_webview/browser/hardware_renderer.h b/android_webview/browser/hardware_renderer.h
index f87890b..b07d36d 100644
--- a/android_webview/browser/hardware_renderer.h
+++ b/android_webview/browser/hardware_renderer.h
@@ -54,8 +54,6 @@ class HardwareRenderer : public cc::LayerTreeHostClient,
virtual void DidCompleteSwapBuffers() OVERRIDE {}
// cc::LayerTreeHostSingleThreadClient overrides.
- virtual void ScheduleComposite() OVERRIDE {}
- virtual void ScheduleAnimation() OVERRIDE {}
virtual void DidPostSwapBuffers() OVERRIDE {}
virtual void DidAbortSwapBuffers() OVERRIDE {}