summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Vollick <vollick@chromium.org>2015-05-20 16:06:41 -0400
committerIan Vollick <vollick@chromium.org>2015-05-20 20:07:22 +0000
commit559159d2b8e4b154a1fab68bec184f20268c895a (patch)
tree2dbb23718405baf6e5704e81f2f85a61960c0172
parent35e0873be6135ab855e2314515c1a74de878988a (diff)
downloadchromium_src-559159d2b8e4b154a1fab68bec184f20268c895a.zip
chromium_src-559159d2b8e4b154a1fab68bec184f20268c895a.tar.gz
chromium_src-559159d2b8e4b154a1fab68bec184f20268c895a.tar.bz2
Fix build error with LTHC unittest
BUG=490318 Review URL: https://codereview.chromium.org/1146223002 Cr-Commit-Position: refs/branch-heads/2403@{#34} Cr-Branched-From: f54b8097a9c45ed4ad308133d49f05325d6c5070-refs/heads/master@{#330231}
-rw-r--r--cc/trees/layer_tree_host_common_unittest.cc27
1 files changed, 0 insertions, 27 deletions
diff --git a/cc/trees/layer_tree_host_common_unittest.cc b/cc/trees/layer_tree_host_common_unittest.cc
index 7c861bd..591f48c 100644
--- a/cc/trees/layer_tree_host_common_unittest.cc
+++ b/cc/trees/layer_tree_host_common_unittest.cc
@@ -9596,32 +9596,5 @@ TEST_F(LayerTreeHostCommonTest, InputHandlersRecursiveUpdateTest) {
EXPECT_EQ(root->num_layer_or_descendants_with_input_handler(), 0);
}
-TEST_F(LayerTreeHostCommonTest, ResetPropertyTreeIndices) {
- gfx::Transform identity;
- gfx::Transform translate_z;
- translate_z.Translate3d(0, 0, 10);
-
- scoped_refptr<Layer> root = Layer::Create();
- SetLayerPropertiesForTesting(root.get(), identity, gfx::Point3F(),
- gfx::PointF(), gfx::Size(800, 800), true, false);
-
- scoped_refptr<Layer> child = Layer::Create();
- SetLayerPropertiesForTesting(child.get(), translate_z, gfx::Point3F(),
- gfx::PointF(), gfx::Size(100, 100), true, false);
-
- root->AddChild(child);
-
- scoped_ptr<FakeLayerTreeHost> host(CreateFakeLayerTreeHost());
- host->SetRootLayer(root);
-
- ExecuteCalculateDrawPropertiesWithPropertyTrees(root.get());
- EXPECT_NE(-1, child->transform_tree_index());
-
- child->RemoveFromParent();
-
- ExecuteCalculateDrawPropertiesWithPropertyTrees(root.get());
- EXPECT_EQ(-1, child->transform_tree_index());
-}
-
} // namespace
} // namespace cc