From 36e848dac55dd8b29659f52eeb6ec1bcfd8b6c23 Mon Sep 17 00:00:00 2001 From: enne Date: Mon, 15 Jun 2015 14:55:18 -0700 Subject: cc: Fix DRLI unit test failure with property tree verification This test directly changes a LayerImpl transform, so needs to rebuild property trees after doing so. With this change and property tree verification turned on, this test no longer asserts about visible rect differences between CDP and property trees. CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1181413006 Cr-Commit-Position: refs/heads/master@{#334468} --- cc/layers/delegated_renderer_layer_impl_unittest.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cc') diff --git a/cc/layers/delegated_renderer_layer_impl_unittest.cc b/cc/layers/delegated_renderer_layer_impl_unittest.cc index 8976cc5..eea9237 100644 --- a/cc/layers/delegated_renderer_layer_impl_unittest.cc +++ b/cc/layers/delegated_renderer_layer_impl_unittest.cc @@ -1591,6 +1591,9 @@ TEST_F(DelegatedRendererLayerImplTest, Occlusion) { gfx::Transform layer_transform; layer_transform.Translate(11.0, 0.0); delegated_renderer_layer_impl->SetTransform(layer_transform); + delegated_renderer_layer_impl->layer_tree_impl() + ->property_trees() + ->needs_rebuild = true; occlusion_in_target_of_delegated_quad += gfx::Vector2d(11, 0); -- cgit v1.1