e359aa35d1
We're currently letting render context overrides (opacity, color filters, blend mode, etc) spill down the descendent/mask content tree. This is not ideal, as mask content isolation breaks atomicity assumptions for deferred overrides. Case in point: motion blur uses SkBlendMode::kPlus to accumulate content "layers" - but since mask content gets rendered into a separate layer, it fails to produce the expected result. The fix is to realize all context overrides on the top-level mask layer (we already allocate this layer, so there's no reason to defer downstream anyway). Change-Id: Icbb7e403f90feecfae5846697f559a03d8aa4097 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/239036 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org>
1 line
1.3 KiB
JSON
1 line
1.3 KiB
JSON
{"v":"5.5.5","fr":60,"ip":0,"op":300,"w":500,"h":500,"nm":"Comp 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":1,"nm":"Deep Green Solid 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":0,"s":[249,250,0],"to":[0.333,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":150,"s":[251,250,0],"to":[0,0,0],"ti":[0.333,0,0]},{"t":299,"s":[249,250,0]}],"ix":2},"a":{"a":0,"k":[200,200,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[0,100],[0,300],[400,300],[400,100]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"f":{"a":0,"k":[1,1],"ix":2},"nm":"Mask 1"}],"sw":400,"sh":400,"sc":"#008000","ip":0,"op":300,"st":0,"cp":false,"mb":true,"bm":0},{"ddd":0,"ind":2,"ty":1,"nm":"White Solid 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[250,250,0],"ix":2},"a":{"a":0,"k":[250,250,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"sw":500,"sh":500,"sc":"#ffffff","ip":0,"op":300,"st":0,"cp":false,"bm":0}],"markers":[],"mb":{"sa":720,"sp":0,"spf":16,"asl":32}} |