Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Issue 2559413002: [1/5] Pass transformed rasterization policy from Blink (Closed)

Created:
4 years ago by trchen
Modified:
3 years, 8 months ago
Reviewers:
chrishtr, enne (OOO)
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-layout_chromium.org, cc-bugs_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -0 lines) Patch
M cc/blink/web_content_layer_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/blink/web_content_layer_impl.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M cc/layers/picture_layer.h View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M cc/layers/picture_layer.cc View 1 2 4 chunks +37 lines, -0 lines 0 comments Download
M cc/layers/picture_layer_impl.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebContentLayer.h View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (15 generated)
enne (OOO)
https://codereview.chromium.org/2559413002/diff/1/cc/layers/picture_layer.h File cc/layers/picture_layer.h (right): https://codereview.chromium.org/2559413002/diff/1/cc/layers/picture_layer.h#newcode88 cc/layers/picture_layer.h:88: bool UseTransformedRasterization() const; style nit: maybe this should be ...
3 years, 11 months ago (2017-01-03 22:53:01 UTC) #4
enne (OOO)
lgtm
3 years, 8 months ago (2017-03-29 13:02:02 UTC) #8
trchen
Oops, I forgot third_party/WebKit. chrishtr@ could you take a look? Thanks!
3 years, 8 months ago (2017-03-31 19:29:56 UTC) #10
chrishtr
lgtm
3 years, 8 months ago (2017-04-03 20:47:09 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2559413002/60001
3 years, 8 months ago (2017-04-03 22:33:09 UTC) #18
commit-bot: I haz the power
3 years, 8 months ago (2017-04-03 22:39:27 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/f0cb63ee25776d29838be8782ce9...

Powered by Google App Engine
This is Rietveld 408576698