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

Unified Diff: content/test/web_layer_tree_view_impl_for_testing.cc

Issue 61823008: Introduce separate client and init path for single-threaded cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « content/test/web_layer_tree_view_impl_for_testing.h ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/web_layer_tree_view_impl_for_testing.cc
diff --git a/content/test/web_layer_tree_view_impl_for_testing.cc b/content/test/web_layer_tree_view_impl_for_testing.cc
index 64be748b3f7de9a725a99b84ff8ebebf2eb8736d..7858fd8c8bb7eeecdf763c6a9e4882d3fd5359f5 100644
--- a/content/test/web_layer_tree_view_impl_for_testing.cc
+++ b/content/test/web_layer_tree_view_impl_for_testing.cc
@@ -45,7 +45,8 @@ bool WebLayerTreeViewImplForTesting::Initialize() {
// Accelerated animations are enabled for unit tests.
settings.accelerated_animation_enabled = true;
- layer_tree_host_ = cc::LayerTreeHost::Create(this, NULL, settings, NULL);
+ layer_tree_host_ =
+ cc::LayerTreeHost::CreateSingleThreaded(this, this, NULL, settings);
if (!layer_tree_host_)
return false;
return true;
@@ -162,9 +163,6 @@ WebLayerTreeViewImplForTesting::CreateOutputSurface(bool fallback) {
new cc::OutputSurface(cc::TestContextProvider::Create()));
}
-void WebLayerTreeViewImplForTesting::ScheduleComposite() {
-}
-
scoped_refptr<cc::ContextProvider>
WebLayerTreeViewImplForTesting::OffscreenContextProvider() {
// Unit tests only run in single threaded mode.
« no previous file with comments | « content/test/web_layer_tree_view_impl_for_testing.h ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698