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

Unified Diff: cc/layers/layer_impl.cc

Issue 2011063002: cc: Use ScreenSpaceTransform to determine content scale (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make layout test need-auto-rebaseline Created 4 years, 7 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
« no previous file with comments | « no previous file | cc/layers/picture_image_layer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index 1d373eec763070f7f5ed7c6f52d3a11a44f46eb9..f27ad1e02e3cb173cfe69ec22ee3202af5bc6231 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -1399,7 +1399,7 @@ float LayerImpl::GetIdealContentsScale() const {
}
gfx::Vector2dF transform_scales = MathUtil::ComputeTransform2dScaleComponents(
- DrawTransform(), default_scale);
+ ScreenSpaceTransform(), default_scale);
return std::max(transform_scales.x(), transform_scales.y());
}
« no previous file with comments | « no previous file | cc/layers/picture_image_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698