Index: cc/trees/layer_tree_host_common_unittest.cc |
diff --git a/cc/trees/layer_tree_host_common_unittest.cc b/cc/trees/layer_tree_host_common_unittest.cc |
index 53a804cf2e99a250b93b7a2a2496969056e8254d..63c1c0bc269aac704b169fb44574a9860a6b8e63 100644 |
--- a/cc/trees/layer_tree_host_common_unittest.cc |
+++ b/cc/trees/layer_tree_host_common_unittest.cc |
@@ -60,6 +60,7 @@ class MockContentLayerClient : public ContentLayerClient { |
public: |
MockContentLayerClient() {} |
~MockContentLayerClient() override {} |
+ gfx::Rect PaintableRegion() override { return gfx::Rect(); } |
scoped_refptr<DisplayItemList> PaintContentsToDisplayList( |
const gfx::Rect& clip, |
PaintingControlSetting picture_control) override { |
@@ -8360,8 +8361,9 @@ static void CopyOutputCallback(scoped_ptr<CopyOutputResult> result) { |
TEST_F(LayerTreeHostCommonTest, SkippingSubtreeMain) { |
gfx::Transform identity; |
- FakeContentLayerClient client; |
scoped_refptr<Layer> root = Layer::Create(layer_settings()); |
+ FakeContentLayerClient client; |
+ client.set_bounds(root->bounds()); |
scoped_refptr<LayerWithForcedDrawsContent> child = |
make_scoped_refptr(new LayerWithForcedDrawsContent(layer_settings())); |
scoped_refptr<LayerWithForcedDrawsContent> grandchild = |
@@ -8534,8 +8536,9 @@ TEST_F(LayerTreeHostCommonTest, SkippingSubtreeImpl) { |
TEST_F(LayerTreeHostCommonTest, SkippingLayer) { |
gfx::Transform identity; |
- FakeContentLayerClient client; |
scoped_refptr<Layer> root = Layer::Create(layer_settings()); |
+ FakeContentLayerClient client; |
+ client.set_bounds(root->bounds()); |
scoped_refptr<LayerWithForcedDrawsContent> child = |
make_scoped_refptr(new LayerWithForcedDrawsContent(layer_settings())); |
SetLayerPropertiesForTesting(root.get(), identity, gfx::Point3F(), |