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

Unified Diff: cc/tiled_layer_unittest.cc

Issue 11276060: Pass accurate contentsScale to LayerImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months 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
« cc/tiled_layer.cc ('K') | « cc/tiled_layer_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiled_layer_unittest.cc
diff --git a/cc/tiled_layer_unittest.cc b/cc/tiled_layer_unittest.cc
index ffa8461c4c6e3429167eb98c6bc1400885ec23fa..e2c2d2cea2bf82ea2993000be0072efe63c6fa5c 100644
--- a/cc/tiled_layer_unittest.cc
+++ b/cc/tiled_layer_unittest.cc
@@ -1168,7 +1168,7 @@ TEST_F(TiledLayerTest, tilesPaintedWithOcclusionAndScaling)
layer->setContentsScale(0.5);
layer->setBounds(IntSize(600, 600));
WebTransformationMatrix drawTransform;
- drawTransform.scale(1 / layer->contentsScale());
+ drawTransform.scale(1 / layer->contentsScaleX());
enne (OOO) 2012/10/29 19:19:41 Also assert that contentsScaleX == contentsScaleY,
wangxianzhu 2012/10/30 02:14:21 Done.
layer->setDrawTransform(drawTransform);
layer->setScreenSpaceTransform(drawTransform);
« cc/tiled_layer.cc ('K') | « cc/tiled_layer_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698