| Summary: | [GPU Process] [Filters 17/23] Make FilterEffect calculate the primitive subregion only when needed | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Said Abou-Hallawa <sabouhallawa> | ||||||||||||||||||||||||
| Component: | Layout and Rendering | Assignee: | Said Abou-Hallawa <sabouhallawa> | ||||||||||||||||||||||||
| Status: | RESOLVED FIXED | ||||||||||||||||||||||||||
| Severity: | Normal | CC: | annulen, bfulgham, changseok, dino, eric.carlson, esprehn+autocc, ews-watchlist, fmalita, fred.wang, glenn, gyuyoung.kim, heycam, hta, jer.noble, kondapallykalyan, macpherson, menard, pdr, philipj, ryuan.choi, schenney, sergio, simon.fraser, tommyw, webkit-bug-importer, zalan | ||||||||||||||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||||||||||||||
| Version: | WebKit Nightly Build | ||||||||||||||||||||||||||
| Hardware: | Unspecified | ||||||||||||||||||||||||||
| OS: | Unspecified | ||||||||||||||||||||||||||
| Bug Depends on: | |||||||||||||||||||||||||||
| Bug Blocks: | 231253 | ||||||||||||||||||||||||||
| Attachments: |
|
||||||||||||||||||||||||||
|
Description
Said Abou-Hallawa
2021-11-04 02:40:13 PDT
Created attachment 443290 [details]
Patch
Created attachment 443503 [details]
Patch
Created attachment 443504 [details]
Patch
Created attachment 443505 [details]
Patch
Created attachment 443516 [details]
Patch
Created attachment 443517 [details]
Patch
Created attachment 443652 [details]
Patch for review
Created attachment 445965 [details]
Patch
Created attachment 446055 [details]
Patch
Created attachment 446057 [details]
Patch
Created attachment 446074 [details]
Patch
Comment on attachment 446074 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=446074&action=review > Source/WebCore/platform/graphics/filters/FilterEffect.cpp:52 > + for (auto& input : inputs) > + primitiveSubregion.unite(input->primitiveSubregion()); I guess we're guaranteed that input's primitive subregion has already been calculated at this point, because of the ordering of the filter effects in the overall expression? Comment on attachment 446074 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=446074&action=review >> Source/WebCore/platform/graphics/filters/FilterEffect.cpp:52 >> + primitiveSubregion.unite(input->primitiveSubregion()); > > I guess we're guaranteed that input's primitive subregion has already been calculated at this point, because of the ordering of the filter effects in the overall expression? Yes this correct. In SVGFilter we apply the effects from the SVGFilterExpression which is the post-fix notation of the filter. For CSSFilter we apply the effects from left to right since every effect is the input to the next effect. Committed r286578 (?): <https://commits.webkit.org/r286578> All reviewed patches have been landed. Closing bug and clearing flags on attachment 446074 [details]. |