aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/pdf
diff options
context:
space:
mode:
authorGravatar vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2010-12-01 22:17:20 +0000
committerGravatar vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2010-12-01 22:17:20 +0000
commita09ef977b6799f01cd3fd64725fb3069da8be4bc (patch)
treee7ce250b8c1ac3d85c135cdadba633004d64e473 /include/pdf
parentca735ff61746fd230998b05fd9b9ec52e90c39e0 (diff)
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
Diffstat (limited to 'include/pdf')
-rw-r--r--include/pdf/SkPDFStream.h7
1 files changed, 5 insertions, 2 deletions
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<SkStream> fData;
+ size_t fLength;
+ // Only one of the two streams will be valid.
+ SkRefPtr<SkStream> fPlainData;
+ SkDynamicMemoryWStream fCompressedData;
};
#endif