| Index: cc/trees/layer_tree_host_unittest.cc
|
| diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
|
| index 7c1bb813fa4f1c2b1e3949e6e9838f6f6fc9fc13..39f930dc9d4b65ef26083069f11c8a475ff9768c 100644
|
| --- a/cc/trees/layer_tree_host_unittest.cc
|
| +++ b/cc/trees/layer_tree_host_unittest.cc
|
| @@ -145,6 +145,7 @@ class LayerTreeHostTestPushPropertiesTo : public LayerTreeHostTest {
|
| protected:
|
| virtual void SetupTree() OVERRIDE {
|
| scoped_refptr<Layer> root = Layer::Create();
|
| + root->CreateRenderSurface();
|
| root->SetBounds(gfx::Size(10, 10));
|
| layer_tree_host()->SetRootLayer(root);
|
| LayerTreeHostTest::SetupTree();
|
| @@ -338,6 +339,7 @@ class LayerTreeHostTestNoExtraCommitFromInvalidate : public LayerTreeHostTest {
|
| virtual void SetupTree() OVERRIDE {
|
| root_layer_ = Layer::Create();
|
| root_layer_->SetBounds(gfx::Size(10, 20));
|
| + root_layer_->CreateRenderSurface();
|
|
|
| scaled_layer_ = FakeContentLayer::Create(&client_);
|
| scaled_layer_->SetBounds(gfx::Size(1, 1));
|
| @@ -391,6 +393,7 @@ class LayerTreeHostTestNoExtraCommitFromScrollbarInvalidate
|
| virtual void SetupTree() OVERRIDE {
|
| root_layer_ = Layer::Create();
|
| root_layer_->SetBounds(gfx::Size(10, 20));
|
| + root_layer_->CreateRenderSurface();
|
|
|
| bool paint_scrollbar = true;
|
| bool has_thumb = false;
|
| @@ -630,7 +633,9 @@ class LayerTreeHostTestUndrawnLayersPushContentBoundsLater
|
| : public LayerTreeHostTest {
|
| public:
|
| LayerTreeHostTestUndrawnLayersPushContentBoundsLater()
|
| - : root_layer_(Layer::Create()) {}
|
| + : root_layer_(Layer::Create()) {
|
| + root_layer_->CreateRenderSurface();
|
| + }
|
|
|
| virtual void SetupTree() OVERRIDE {
|
| root_layer_->SetIsDrawable(true);
|
| @@ -2969,6 +2974,7 @@ class LayerTreeHostTestLayersPushProperties : public LayerTreeHostTest {
|
|
|
| virtual void SetupTree() OVERRIDE {
|
| root_ = PushPropertiesCountingLayer::Create();
|
| + root_->CreateRenderSurface();
|
| child_ = PushPropertiesCountingLayer::Create();
|
| child2_ = PushPropertiesCountingLayer::Create();
|
| grandchild_ = PushPropertiesCountingLayer::Create();
|
| @@ -2981,6 +2987,7 @@ class LayerTreeHostTestLayersPushProperties : public LayerTreeHostTest {
|
| child2_->AddChild(leaf_always_pushing_layer_);
|
|
|
| other_root_ = PushPropertiesCountingLayer::Create();
|
| + other_root_->CreateRenderSurface();
|
|
|
| // Don't set the root layer here.
|
| LayerTreeHostTest::SetupTree();
|
| @@ -3353,6 +3360,7 @@ class LayerTreeHostTestPropertyChangesDuringUpdateArePushed
|
|
|
| virtual void SetupTree() OVERRIDE {
|
| root_ = Layer::Create();
|
| + root_->CreateRenderSurface();
|
| root_->SetBounds(gfx::Size(1, 1));
|
|
|
| bool paint_scrollbar = true;
|
| @@ -3409,6 +3417,7 @@ class LayerTreeHostTestSetDrawableCausesCommit : public LayerTreeHostTest {
|
|
|
| virtual void SetupTree() OVERRIDE {
|
| root_ = PushPropertiesCountingLayer::Create();
|
| + root_->CreateRenderSurface();
|
| child_ = PushPropertiesCountingLayer::Create();
|
| root_->AddChild(child_);
|
|
|
| @@ -3470,6 +3479,7 @@ class LayerTreeHostTestCasePushPropertiesThreeGrandChildren
|
|
|
| virtual void SetupTree() OVERRIDE {
|
| root_ = PushPropertiesCountingLayer::Create();
|
| + root_->CreateRenderSurface();
|
| child_ = PushPropertiesCountingLayer::Create();
|
| grandchild1_ = PushPropertiesCountingLayer::Create();
|
| grandchild2_ = PushPropertiesCountingLayer::Create();
|
| @@ -4024,6 +4034,7 @@ class LayerTreeHostTestPushHiddenLayer : public LayerTreeHostTest {
|
| protected:
|
| virtual void SetupTree() OVERRIDE {
|
| root_layer_ = Layer::Create();
|
| + root_layer_->CreateRenderSurface();
|
| root_layer_->SetPosition(gfx::Point());
|
| root_layer_->SetBounds(gfx::Size(10, 10));
|
|
|
| @@ -4132,6 +4143,7 @@ class LayerTreeHostTestAbortEvictedTextures : public LayerTreeHostTest {
|
| scoped_refptr<SolidColorLayer> root_layer = SolidColorLayer::Create();
|
| root_layer->SetBounds(gfx::Size(200, 200));
|
| root_layer->SetIsDrawable(true);
|
| + root_layer->CreateRenderSurface();
|
|
|
| layer_tree_host()->SetRootLayer(root_layer);
|
| LayerTreeHostTest::SetupTree();
|
| @@ -4957,6 +4969,7 @@ class LayerTreeHostTestContinuousPainting : public LayerTreeHostTest {
|
| virtual void SetupTree() OVERRIDE {
|
| scoped_refptr<Layer> root_layer = Layer::Create();
|
| root_layer->SetBounds(bounds_);
|
| + root_layer->CreateRenderSurface();
|
|
|
| if (layer_tree_host()->settings().impl_side_painting) {
|
| picture_layer_ = FakePictureLayer::Create(&client_);
|
|
|