Chromium Code Reviews
Description[SPv2] Add CSS mask support
This CL adds CSS mask support for SPv2. The following changes have been made:
* Presence of a mask will ensure the main effect node, although the mask
is not applied to it directly.
* The mask itself will paint into a child isolated group of the main effect
node, with kDstIn blend mode.
* CSS filter has been moved to a dedicated effect node. This is because the
mask must composite on top of filtered contents but before applying other
effects.
* Mask will also create an accompanied output clip, because masked contents
outside of the mask's extent shall be considered masked out.
* Currently both the main effect nodes and the mask will have forced
compositing reason, which diverges from SPv1 behavior. This is due to the
PaintArtifactCompositor doesn't handle grouping correctly yet.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Review-Url: https://codereview.chromium.org/2641173008
Cr-Commit-Position: refs/heads/master@{#451263}
Committed: https://chromium.googlesource.com/chromium/src/+/24ffc96f66c428a9820e839af5c47887ce2042b7
Patch Set 1 #
Total comments: 6
Patch Set 2 : fix transform space application, split filter from effect node, rename hasCompositedMask, temporari⦠#Patch Set 3 : fix missed effect --> filter replacement for outputClip #Patch Set 4 : update layout test expectation && add unit tests #
Total comments: 17
Patch Set 5 : update comments, add Ahem support to RenderingTests #
Total comments: 2
Patch Set 6 : rebase & fix windows build issue #Patch Set 7 : test data path issue? #Patch Set 8 : rebase #Patch Set 9 : rebase #Messages
Total messages: 46 (29 generated)
|