Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(496)

Unified Diff: cc/trees/layer_tree_host_unittest.cc

Issue 1479883002: cc: Fix draw transform computation for non-drawn layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove LayerImpl::draw_transform() Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/trees/layer_tree_host_unittest.cc
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
index 122a7dc3b30959b858ee1bfe5f678f8cdccd1421..6e5657518036b2c971386211ef2f5fda158cfa7b 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -1700,7 +1700,7 @@ class LayerTreeHostTestDeviceScaleFactorScalesViewportAndLayers
gfx::Transform root_screen_space_transform = scale_transform;
gfx::Transform root_draw_transform = scale_transform;
- EXPECT_EQ(root_draw_transform, root->draw_transform());
+ EXPECT_EQ(root_draw_transform, root->DrawTransform());
EXPECT_EQ(root_screen_space_transform, root->screen_space_transform());
// The child is at position 2,2, which is transformed to 3,3 after the scale
@@ -1709,7 +1709,7 @@ class LayerTreeHostTestDeviceScaleFactorScalesViewportAndLayers
child_transform.Scale(child->MaximumTilingContentsScale(),
child->MaximumTilingContentsScale());
- EXPECT_TRANSFORMATION_MATRIX_EQ(child_transform, child->draw_transform());
+ EXPECT_TRANSFORMATION_MATRIX_EQ(child_transform, child->DrawTransform());
EXPECT_TRANSFORMATION_MATRIX_EQ(child_transform,
child->screen_space_transform());

Powered by Google App Engine
This is Rietveld 408576698