Description[1/5] Pass transformed rasterization policy from Blink
This CL adds an "allow transformed rasterization" input flag to cc layers,
and implements a policy in Blink to decide when to enable to flag.
With existing implementation in cc, layers are always rasterized in some
scaled layer space. The idea is that scaled local space may not always align
to target surface pixel-by-pixel. Rasterizing in such space could result in
resampling error at draw time. With this flag enabled, cc would be allowed
to choose arbitrary space to raster the layer for better draw quality.
This CL only enables the flag for layers that are indirectly composited
(e.g. due to children, overlapping, etc...). Such layer by itself would not
be composited, and Skia would have raster it in device pixel space. Therefore
these are good candidates for cc to raster in target space as well.
The flag currently does nothing. The actual transformed rasterization will
be implemented in followup patches.
BUG=521364
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Review-Url: https://codereview.chromium.org/2559413002
Cr-Commit-Position: refs/heads/master@{#461561}
Committed: https://chromium.googlesource.com/chromium/src/+/f0cb63ee25776d29838be8782ce9adb607010ce8
Patch Set 1 #
Total comments: 2
Patch Set 2 : rebase & revise #Patch Set 3 : rebase #Patch Set 4 : rebase #Messages
Total messages: 21 (15 generated)
|