summaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorenne <enne@chromium.org>2015-06-15 14:55:18 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-15 21:56:00 +0000
commit36e848dac55dd8b29659f52eeb6ec1bcfd8b6c23 (patch)
tree91f24ec05f5f4a666458b4c5b5085135e393ab47 /cc
parent585b1bc5f9a8ebec84e6e74b917f58a0a9a28ecd (diff)
downloadchromium_src-36e848dac55dd8b29659f52eeb6ec1bcfd8b6c23.zip
chromium_src-36e848dac55dd8b29659f52eeb6ec1bcfd8b6c23.tar.gz
chromium_src-36e848dac55dd8b29659f52eeb6ec1bcfd8b6c23.tar.bz2
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}
Diffstat (limited to 'cc')
-rw-r--r--cc/layers/delegated_renderer_layer_impl_unittest.cc3
1 files changed, 3 insertions, 0 deletions
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);