diff options
Diffstat (limited to 'content/test/web_layer_tree_view_impl_for_testing.cc')
-rw-r--r-- | content/test/web_layer_tree_view_impl_for_testing.cc | 6 |
1 files changed, 2 insertions, 4 deletions
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 1470e03..d29e68b 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,9 +47,7 @@ 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() { |