From a09ef977b6799f01cd3fd64725fb3069da8be4bc Mon Sep 17 00:00:00 2001 From: "vandebo@chromium.org" Date: Wed, 1 Dec 2010 22:17:20 +0000 Subject: Add deflate support to SkPDFStream. Review URL: http://codereview.appspot.com/3326043 git-svn-id: http://skia.googlecode.com/svn/trunk@627 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/pdf/SkPDFStream.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/pdf') diff --git a/include/pdf/SkPDFStream.h b/include/pdf/SkPDFStream.h index 24a96422be..10a40b6f98 100644 --- a/include/pdf/SkPDFStream.h +++ b/include/pdf/SkPDFStream.h @@ -19,9 +19,9 @@ #include "SkPDFTypes.h" #include "SkRefCnt.h" +#include "SkStream.h" #include "SkTemplates.h" -class SkStream; class SkPDFCatalog; /** \class SkPDFStream @@ -57,7 +57,10 @@ public: private: SkPDFDict fDict; - SkRefPtr fData; + size_t fLength; + // Only one of the two streams will be valid. + SkRefPtr fPlainData; + SkDynamicMemoryWStream fCompressedData; }; #endif -- cgit v1.2.3