Chromium Code Reviews| 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..afb04e2c629a042f404c04dd0a2b163e4bee884a 100644 |
| --- a/cc/trees/layer_tree_host_unittest_scroll.cc |
| +++ b/cc/trees/layer_tree_host_unittest_scroll.cc |
| @@ -5,11 +5,11 @@ |
| #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/test/fake_content_layer_client.h" |
| #include "cc/test/fake_layer_tree_host_client.h" |
| +#include "cc/test/fake_picture_layer.h" |
| #include "cc/test/geometry_test_utils.h" |
| #include "cc/test/layer_tree_test.h" |
| #include "cc/test/test_shared_bitmap_manager.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_ = FakePictureLayer::Create(&fake_content_layer_client_); |
|
danakj
2014/08/11 14:12:46
Looks like we don't use anything that FakePictureL
sohanjg
2014/08/11 14:26:42
Done.
|
| 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_ = FakePictureLayer::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<FakePictureLayer> scroll_layer = |
| + FakePictureLayer::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 |