diff options
author | halcanary <halcanary@google.com> | 2015-02-18 11:29:56 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-18 11:29:57 -0800 |
commit | 1b5c604d9d344537941b11b136348edfc39f236c (patch) | |
tree | 72110f65007d2e0af1cc525376488ed360b6a07d /site/dev | |
parent | 0babd3c61987428a5c532f65be9d98c7ac583e0d (diff) |
PDF: 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
Review URL: https://codereview.chromium.org/918813002
Diffstat (limited to 'site/dev')
-rw-r--r-- | site/dev/contrib/style.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/site/dev/contrib/style.md b/site/dev/contrib/style.md index dd39a734a8..455eed6b38 100644 --- a/site/dev/contrib/style.md +++ b/site/dev/contrib/style.md @@ -20,6 +20,7 @@ sufficient then that is preferred to an include. Forward declarations and file includes should be in alphabetical order (but we aren't very strict about it). +<span id="no-define-before-sktypes"></span> Do not use #if/#ifdef before including "SkTypes.h" (directly or indirectly). We use spaces not tabs (4 of them). |