| Summary: | [CG] Avoid creating a sub-image when drawing a small scaled sub-rect from a native image | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Said Abou-Hallawa <sabouhallawa> | ||||||||||
| Component: | Images | Assignee: | Said Abou-Hallawa <sabouhallawa> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | simon.fraser, webkit-bug-importer | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Said Abou-Hallawa
2020-07-31 02:18:55 PDT
Created attachment 405677 [details]
Patch
Does the subimage cache come into play here? Does turning it off change behavior? Created attachment 405817 [details]
Patch
Created attachment 405853 [details]
Patch
(In reply to Simon Fraser (smfr) from comment #3) > Does the subimage cache come into play here? Does turning it off change > behavior? No not really. Subimage cache requires creating the sub images also. So the cost of caching these images is added when the sub-image is rendered for the first time. For example, a page creates a picker element when it is first needed. When the picker element is popped up, its layer is rendered and the children elements are rendered for the first time. At this time the rendering might be slow if many sub-images are created. When the user selects an element from the picker or dismisses it, the picker element is hidden. If the user invokes an action which pops the picker up again, no rendering will be needed. All we need is showing the picker's layer. So caching and non caching the sub-images will not affect the rendering speed after the first time the sub-images are rendered. Created attachment 406099 [details]
Patch
Committed r265346: <https://trac.webkit.org/changeset/265346> All reviewed patches have been landed. Closing bug and clearing flags on attachment 406099 [details]. |