From 1b5c604d9d344537941b11b136348edfc39f236c Mon Sep 17 00:00:00 2001 From: halcanary Date: Wed, 18 Feb 2015 11:29:56 -0800 Subject: 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 --- site/dev/contrib/style.md | 1 + 1 file changed, 1 insertion(+) (limited to 'site/dev') 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). + Do not use #if/#ifdef before including "SkTypes.h" (directly or indirectly). We use spaces not tabs (4 of them). -- cgit v1.2.3