Index: cc/trees/layer_tree_host_unittest_scroll.cc |
diff --git a/cc/trees/layer_tree_host_unittest_scroll.cc b/cc/trees/layer_tree_host_unittest_scroll.cc |
index 499f2d63108575fe2aa28cd89231f70ee8e1dcd3..16b6608c3d2a83c9c6280a40036ab518039bdf27 100644 |
--- a/cc/trees/layer_tree_host_unittest_scroll.cc |
+++ b/cc/trees/layer_tree_host_unittest_scroll.cc |
@@ -5,9 +5,9 @@ |
#include "cc/trees/layer_tree_host.h" |
#include "base/memory/weak_ptr.h" |
-#include "cc/layers/content_layer.h" |
#include "cc/layers/layer.h" |
#include "cc/layers/layer_impl.h" |
+#include "cc/layers/picture_layer.h" |
#include "cc/test/fake_content_layer_client.h" |
#include "cc/test/fake_layer_tree_host_client.h" |
#include "cc/test/geometry_test_utils.h" |
@@ -449,7 +449,7 @@ class LayerTreeHostScrollTestCaseWithChild : public LayerTreeHostScrollTest { |
scoped_refptr<Layer> root_layer = Layer::Create(); |
root_layer->SetBounds(gfx::Size(10, 10)); |
- root_scroll_layer_ = ContentLayer::Create(&fake_content_layer_client_); |
+ root_scroll_layer_ = PictureLayer::Create(&fake_content_layer_client_); |
root_scroll_layer_->SetBounds(gfx::Size(110, 110)); |
root_scroll_layer_->SetPosition(gfx::Point()); |
@@ -459,7 +459,7 @@ class LayerTreeHostScrollTestCaseWithChild : public LayerTreeHostScrollTest { |
root_scroll_layer_->SetIsContainerForFixedPositionLayers(true); |
root_layer->AddChild(root_scroll_layer_); |
- child_layer_ = ContentLayer::Create(&fake_content_layer_client_); |
+ child_layer_ = PictureLayer::Create(&fake_content_layer_client_); |
child_layer_->set_did_scroll_callback( |
base::Bind(&LayerTreeHostScrollTestCaseWithChild::DidScroll, |
base::Unretained(this))); |
@@ -1204,8 +1204,8 @@ class LayerTreeHostScrollTestLayerStructureChange |
}; |
Layer* CreateScrollLayer(Layer* parent, FakeLayerScrollClient* client) { |
- scoped_refptr<Layer> scroll_layer = |
- ContentLayer::Create(&fake_content_layer_client_); |
+ scoped_refptr<PictureLayer> scroll_layer = |
+ PictureLayer::Create(&fake_content_layer_client_); |
scroll_layer->SetBounds(gfx::Size(110, 110)); |
scroll_layer->SetPosition(gfx::Point(0, 0)); |
scroll_layer->SetIsDrawable(true); |
@@ -1230,12 +1230,12 @@ class LayerTreeHostScrollTestLayerStructureChange |
}; |
TEST_F(LayerTreeHostScrollTestLayerStructureChange, ScrollDestroyLayer) { |
- RunTest(true, false, false); |
+ RunTest(true, false, true); |
} |
TEST_F(LayerTreeHostScrollTestLayerStructureChange, ScrollDestroyWholeTree) { |
scroll_destroy_whole_tree_ = true; |
- RunTest(true, false, false); |
+ RunTest(true, false, true); |
} |
} // namespace |