DescriptionPDF: Add (low-memory) SkPDFBitmap class
Also: Add SkDeflateWStream and associated unit tests.
SkPDFBitmap is a replacement for SkPDFImage. As of now, it only
supports 8888 bitmaps (the most common case).
SkPDFBitmap takes very little extra memory (aside from refing the
bitmap's pixels), and its emitObject() does not cache any data.
The SkPDFBitmap::Create function will check the canon for duplicates.
This can reduce the size of the output PDF.
Motivation: this gives another ~40% decrease in PDF memory overhead
TODO: Support other ColorTypes and scrap SkPDFImage.
BUG=skia:3030
Committed: https://skia.googlesource.com/skia/+/1b5c604d9d344537941b11b136348edfc39f236c
Patch Set 1 : 2015-02-11 (Wednesday) 18:49:13 EST #
Total comments: 33
Patch Set 2 : 2015-02-12 (Thursday) 16:27:28 EST #
Total comments: 1
Patch Set 3 : 2015-02-12 (Thursday) 17:09:37 EST #Patch Set 4 : 2015-02-12 (Thursday) 18:22:02 EST #Patch Set 5 : 2015-02-13 (Friday) 13:22:18 EST #Patch Set 6 : 2015-02-13 (Friday) 13:26:10 EST #Patch Set 7 : 2015-02-13 (Friday) 14:22:01 EST #Patch Set 8 : 2015-02-13 (Friday) 16:58:40 EST #Patch Set 9 : rebase on SK_NO_ZLIB #Patch Set 10 : fix win compile, improve trivial compression, fix gm/bitmappremul #Patch Set 11 : mutable bitmaps get copied #
Messages
Total messages: 54 (30 generated)
|