| Index: trunk/src/content/test/web_layer_tree_view_impl_for_testing.cc
|
| ===================================================================
|
| --- trunk/src/content/test/web_layer_tree_view_impl_for_testing.cc (revision 238469)
|
| +++ trunk/src/content/test/web_layer_tree_view_impl_for_testing.cc (working copy)
|
| @@ -36,7 +36,7 @@
|
|
|
| WebLayerTreeViewImplForTesting::~WebLayerTreeViewImplForTesting() {}
|
|
|
| -void WebLayerTreeViewImplForTesting::Initialize() {
|
| +bool WebLayerTreeViewImplForTesting::Initialize() {
|
| cc::LayerTreeSettings settings;
|
|
|
| // For web contents, layer transforms should scale up the contents of layers
|
| @@ -47,7 +47,9 @@
|
| settings.accelerated_animation_enabled = true;
|
| layer_tree_host_ =
|
| cc::LayerTreeHost::CreateSingleThreaded(this, this, NULL, settings);
|
| - DCHECK(layer_tree_host_);
|
| + if (!layer_tree_host_)
|
| + return false;
|
| + return true;
|
| }
|
|
|
| void WebLayerTreeViewImplForTesting::setSurfaceReady() {
|
|
|