| Index: cc/test/layer_test_common.cc
|
| diff --git a/cc/test/layer_test_common.cc b/cc/test/layer_test_common.cc
|
| index d5c5a1c9d24314d51fb1baa1f183047b2cf71dae..aead5b8a90e405aca07db1ef1f93fba7899dbdc1 100644
|
| --- a/cc/test/layer_test_common.cc
|
| +++ b/cc/test/layer_test_common.cc
|
| @@ -126,8 +126,9 @@ LayerTestCommon::LayerImplTest::LayerImplTest(const LayerTreeSettings& settings)
|
| layer_impl_id_(2) {
|
| std::unique_ptr<LayerImpl> root =
|
| LayerImpl::Create(host_->host_impl()->active_tree(), 1);
|
| + root->SetHasRenderSurface(true);
|
| host_->host_impl()->active_tree()->SetRootLayer(std::move(root));
|
| - root_layer()->SetHasRenderSurface(true);
|
| + host_->host_impl()->active_tree()->BuildLayerListForTesting();
|
| host_->host_impl()->SetVisible(true);
|
| host_->host_impl()->InitializeRenderer(output_surface_.get());
|
|
|
| @@ -144,6 +145,7 @@ LayerTestCommon::LayerImplTest::LayerImplTest(const LayerTreeSettings& settings)
|
| LayerTestCommon::LayerImplTest::~LayerImplTest() {
|
| host_->animation_host()->RemoveAnimationTimeline(timeline_);
|
| timeline_ = nullptr;
|
| + host_->host_impl()->ReleaseOutputSurface();
|
| }
|
|
|
| void LayerTestCommon::LayerImplTest::CalcDrawProps(
|
|
|