Chromium Code Reviews
DescriptionCache display items from SVGImage contents.
It works as follows:
1. SkPictureBuilder now allows an existing PaintController to be passed in the
constructor.
2. SVGImage stores a local PaintController for painting image contents.
3. When painting frames that do not invalidate the SVGImage contents, the
PaintController for the image will have the cached DisplayItems from it, and
subsequence caching will allow the LayoutView of the Page belonging to the
SVGImage to be reused.
4. If any invalidation happens on the SVGImage, the usual
caching behavior of SVG will result in the PaintController for the SVG noticing
and not caching DisplayItems or subsequences as appropriate. (*)
(*) this is easy now, because of the changes made earlier this year to use global
invalidation cache epochs rather than PaintController-specific ones.
BUG=663953
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Committed: https://crrev.com/bb1c8b9d3e4acb60fb489f878963e2ccbb936b61
Cr-Commit-Position: refs/heads/master@{#431695}
Patch Set 1 #Patch Set 2 : none #Patch Set 3 : none #
Messages
Total messages: 17 (11 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||