Chromium Code Reviews
DescriptionExtract subpixel offsets from composited layer transforms when possible.
When setting transform on a composited layer, try to separate the subpixel offset
from the rest of it in cases when the transform is a translate or scale. The
transform is modified to remove the subpixel offset; when rastering the layer
we offset the canvas the subpixel offset (this is how it's communicated to Skia);
and the layer size is increased by 1 to account for the shift.
Composited transform animations are supported by prefixing the updated transform
by the inverse of the subpixel offset, to account for the shift of the rastered
tiles by that offset.
The graphics layer is marked as not-opaque if the subpixel offset is non-zero.
This allows us to communicate the subpixel offset to Skia, which can then use its
magic to do better subpixel positioning and pixel snapping. In particular, this
makes text and images snappier if the layer transform has an extractable subpixel
offset.
BUG=
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Patch Set 1 #
Depends on Patchset: Messages
Total messages: 3 (3 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||