From 518ee58ff2ed4f72e313fce4f3c29d2688b3ade1 Mon Sep 17 00:00:00 2001 From: "danakj@chromium.org" Date: Wed, 24 Oct 2012 18:29:44 +0000 Subject: cc: Apply the layer's initial CSS scale to the contentsScale to render text at the right resolution. Currently the transform does not affect the scale of a layer's contents. This means that when a layer with a scale on it becomes composited, its text is rendered at 1x and then scaled up during rendering, which makes for very fuzzy text. This change applies the scale from the layer's CSS transform to the contentsScale so that text is rendered at the same pixel resolution as it will be drawn on screen. Tests: cc_unittests:CCLayerTreeHostCommonTest.verifyContentsScale cc_unittests:CCLayerTreeHostCommonTest.verifyContentsScaleForSurfaces BUG=149943 R=enne Review URL: https://codereview.chromium.org/11230033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163873 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/damage_tracker_unittest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cc/damage_tracker_unittest.cc') diff --git a/cc/damage_tracker_unittest.cc b/cc/damage_tracker_unittest.cc index 69b474b..d7a8dabc 100644 --- a/cc/damage_tracker_unittest.cc +++ b/cc/damage_tracker_unittest.cc @@ -34,7 +34,7 @@ void executeCalculateDrawTransformsAndVisibility(LayerImpl* root, std::vectorrenderSurface()); ASSERT_FALSE(renderSurfaceLayerList.size()); - LayerTreeHostCommon::calculateDrawTransforms(root, root->bounds(), 1, &layerSorter, dummyMaxTextureSize, renderSurfaceLayerList); + LayerTreeHostCommon::calculateDrawTransforms(root, root->bounds(), 1, 1, &layerSorter, dummyMaxTextureSize, renderSurfaceLayerList); } void clearDamageForAllSurfaces(LayerImpl* layer) -- cgit v1.1