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 72d2ec8d13e9fd6a93e0b9596d62267d73580b0d..3aaebd3d6bf2df1b5b4f65c44d7fa63386076848 100644 |
--- a/content/test/web_layer_tree_view_impl_for_testing.cc |
+++ b/content/test/web_layer_tree_view_impl_for_testing.cc |
@@ -36,7 +36,7 @@ WebLayerTreeViewImplForTesting::WebLayerTreeViewImplForTesting() {} |
WebLayerTreeViewImplForTesting::~WebLayerTreeViewImplForTesting() {} |
-bool WebLayerTreeViewImplForTesting::Initialize() { |
+void WebLayerTreeViewImplForTesting::Initialize() { |
cc::LayerTreeSettings settings; |
// For web contents, layer transforms should scale up the contents of layers |
@@ -47,13 +47,11 @@ bool WebLayerTreeViewImplForTesting::Initialize() { |
settings.accelerated_animation_enabled = true; |
layer_tree_host_ = |
cc::LayerTreeHost::CreateSingleThreaded(this, this, NULL, settings); |
- if (!layer_tree_host_) |
- return false; |
- return true; |
+ DCHECK(layer_tree_host_); |
} |
void WebLayerTreeViewImplForTesting::setSurfaceReady() { |
- layer_tree_host_->SetLayerTreeHostClientReady(); |
+ layer_tree_host_->SetLayerTreeHostClientReady(CreateOutputSurface(false)); |
} |
void WebLayerTreeViewImplForTesting::setRootLayer( |