cc : Cache transforms to target even when target is a descendant
BUG=622372
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel
Review-Url: https://codereview.chromium.org/2245463002
Cr-Commit-Position: refs/heads/master@{#412007}
diff --git a/cc/trees/layer_tree_host_common_unittest.cc b/cc/trees/layer_tree_host_common_unittest.cc
index 654622b..356b59f 100644
--- a/cc/trees/layer_tree_host_common_unittest.cc
+++ b/cc/trees/layer_tree_host_common_unittest.cc
@@ -9020,10 +9020,14 @@
gfx::Transform translate;
translate.Translate(10, 10);
+ gfx::Transform rotate;
+ rotate.RotateAboutXAxis(10);
+
root->SetBounds(gfx::Size(100, 100));
surface->SetBounds(gfx::Size(100, 100));
surface->SetMasksToBounds(true);
surface->test_properties()->force_render_surface = true;
+ surface->SetTransform(rotate);
clip_layer->SetBounds(gfx::Size(20, 20));
clip_layer->SetMasksToBounds(true);
clip_parent->SetBounds(gfx::Size(50, 50));