DescriptionMake PicturePile pile.
This follows a similar policy as Android browser:
- If an invalidate only intersects the base plus at most one non-base SkPicture, then it creates a new SkPicture of that size.
- If an invalidate intersects two or more non-base SkPictures, then a new SkPicture is created at the top of the pile, sized to the union of the invalidate plus the bounds of all the intersecting pictures.
- Whenever new picture's area fully contains an existing picture, that old picture is destroyed.
- If an SkPicture's area would be >70% of the base, the pile is
destroyed and the base SkPicture is recreated.
During the invalidate pass, invalidated pictures are represented as
Pictures with a size but no recording. Then all the blank pictures
are filled in at the end of the Update().
BUG=163429
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170917
Patch Set 1 #
Total comments: 4
Patch Set 2 : Fix style nits #Patch Set 3 : Fix signed/unsigned mismatch warning #
Messages
Total messages: 8 (0 generated)
|