summaryrefslogtreecommitdiffstats
path: root/cc/layer_tree_host_common.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/layer_tree_host_common.cc')
-rw-r--r--cc/layer_tree_host_common.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/layer_tree_host_common.cc b/cc/layer_tree_host_common.cc
index 3fccbf1..d6fc3b9 100644
--- a/cc/layer_tree_host_common.cc
+++ b/cc/layer_tree_host_common.cc
@@ -390,7 +390,7 @@ static inline void updateLayerContentsScale(Layer* layer, const gfx::Transform&
rasterScale = 1;
if (!animatingTransformToScreen && layer->automaticallyComputeRasterScale()) {
- gfx::Vector2dF transformScale = MathUtil::computeTransform2dScaleComponents(combinedTransform);
+ gfx::Vector2dF transformScale = MathUtil::computeTransform2dScaleComponents(combinedTransform, 0.f);
float combinedScale = std::max(transformScale.x(), transformScale.y());
rasterScale = combinedScale / deviceScaleFactor;
if (!layer->boundsContainPageScale())
@@ -660,7 +660,7 @@ static void calculateDrawPropertiesInternal(LayerType* layer, const gfx::Transfo
gfx::Transform nextHierarchyMatrix = fullHierarchyMatrix;
gfx::Transform sublayerMatrix;
- gfx::Vector2dF renderSurfaceSublayerScale = MathUtil::computeTransform2dScaleComponents(combinedTransform);
+ gfx::Vector2dF renderSurfaceSublayerScale = MathUtil::computeTransform2dScaleComponents(combinedTransform, deviceScaleFactor * pageScaleFactor);
if (subtreeShouldRenderToSeparateSurface(layer, combinedTransform.IsScaleOrTranslation())) {
// Check back-face visibility before continuing with this surface and its subtree