DescriptionSkImage-only bitmap patterns
The current BitmapPatternBase/BitmapPattern/StaticBitmapPattern class hierarchy exists to support
SkBitmap vs. SkImage-backed patterns. But with the recent SkImage conversion effort, all Images
are now backed by SkImage and BitmapPattern has to go through an unnecessary conversion phase to
get its SkBitmap.
IOW, this dichotomy is now obsolete. The CL removes BitmapPatternBase, BitmapPattern,
StaticBitmapPattern, and replaces them with ImagePattern (which is always/naturally backed by
SkImage).
Also, since we're in this area, convert the current non-repeating tile mode workaround to a
SkPicture-based implementation: instead of allocating/drawing into an expanded bitmap, allocate
an expanded SkPictureImageGenerator-backed SkImage and defer the actual tile drawing until
rasterization time.
BUG=449197
R=junov@chromium.org,senorblanco@chromium.org,reed@google.com
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200707
Patch Set 1 #Patch Set 2 : missing adoptRef + misc cleanup #
Total comments: 2
Patch Set 3 : drop non-repeat optimization #
Total comments: 1
Messages
Total messages: 20 (4 generated)
|