History log of /external/skia/src/pdf/SkBitmapKey.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f50ff39f47850b86251b44381983d3b3b4f929b3 30-Sep-2016 Hal Canary <halcanary@google.com> SkPDF: subset drawImageRect while still deduping

- Replace SkImageBitmap with SkImageSubset

- SkBitmapKey becomes trivial for simplicity.

- SkPDFCanvas::onDraw(Bitmap|Image)Rect now clip and call
SkCanvas::onDraw(Bitmap|Image)Rect.

- SkPDFDevice::draw(Bitmap|BitmapRect|Sprite) now convert bitmap
into SkImageSubset via make_image_subset function.

- SkPDFDevice::draw(Image|Bitmap)Rect now implemented again.

- SkPDFDevice::internalDrawImage now performs image subsetting
as needed, while still deduping properly.

BUG=633528

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2785

Change-Id: I063346d12b0e9c6b6c0c4943ee25400c88aa1a44
Reviewed-on: https://skia-review.googlesource.com/2785
Reviewed-by: Ben Wagner <bungeman@google.com>
/external/skia/src/pdf/SkBitmapKey.h
895f3f0544ce38d35999771754cbb1d876c14b5a 01-Apr-2016 halcanary <halcanary@google.com> SkPDF: properly dedup bitmaps in shaders

BUG=skia:5161
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1848383002

Review URL: https://codereview.chromium.org/1848383002
/external/skia/src/pdf/SkBitmapKey.h
a50151dcb5a0b8bfdef383e363e519c91d2d2c7a 25-Mar-2016 halcanary <halcanary@google.com> SkPDF: draw{Image,Bitmap} always serializes early

Before this change, the PDFCanon held a map from BitmapKeys
to SkImages for de-duping bitmaps. Even if the PDFDocument
serialized images early, the Canon still held a ref to that
image inside the map. With this change, the Canon holds a
single map from BitmapKeys to PDFObjects. Now, Images are
only held by the PDFObject, which the document serializes
and drops early.

This change also:

- Moves SkBitmapKey into its own header (for possible
reuse); it now can operate with images as well as
bitmaps.

- Creates SkImageBitmap, which wraps a pointer to a bitmap
or an image and abstracts out some common tasks so that
drawBitmap and drawImage behave the same.

- Modifies SkPDFCreateBitmapObject to take and return a
sk_sp<T>, not a T*.

- Refactors SkPDFDevice::internalDrawImage to use bitmaps
or images (via a SkImageBitmap).

- Turns on pre-serialization of all images.

BUG=skia:5087

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1829693002

Review URL: https://codereview.chromium.org/1829693002
/external/skia/src/pdf/SkBitmapKey.h