Descriptioncc: 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
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161472
Patch Set 1 #Patch Set 2 : indent-fix #Patch Set 3 : reference-consistency-in-mathutil #Patch Set 4 : rebase #Patch Set 5 : implement in CCLTHCommon #Patch Set 6 : dont update during animation #Patch Set 7 : remove extra header #
Total comments: 2
Patch Set 8 : initialLayerScale #Patch Set 9 : initialLayerScale #Patch Set 10 : initialCssScale #
Total comments: 2
Patch Set 11 : #Patch Set 12 : #Patch Set 13 : #
Total comments: 1
Patch Set 14 : #Patch Set 15 : rebase add math.h #Patch Set 16 : rebase #Patch Set 17 : #Patch Set 18 : rebase #Patch Set 19 : css scale = 1 when perspective #Patch Set 20 : fix test build #Patch Set 21 : rebase #
Messages
Total messages: 31 (0 generated)
|