Index: include/pdf/SkPDFDevice.h |
diff --git a/include/pdf/SkPDFDevice.h b/include/pdf/SkPDFDevice.h |
index 8ac227dbaa1bb140d26dac161967439481781023..02acce365abcaa374be95c86f5285a89280c815b 100644 |
--- a/include/pdf/SkPDFDevice.h |
+++ b/include/pdf/SkPDFDevice.h |
@@ -14,6 +14,7 @@ |
#include "SkCanvas.h" |
#include "SkPaint.h" |
#include "SkPath.h" |
+#include "SkPicture.h" |
#include "SkRect.h" |
#include "SkRefCnt.h" |
#include "SkStream.h" |
@@ -38,8 +39,6 @@ struct ContentEntry; |
struct GraphicStateEntry; |
struct NamedDestination; |
-typedef bool (*EncodeToDCTStream)(SkWStream* stream, const SkBitmap& bitmap, const SkIRect& rect); |
- |
/** \class SkPDFDevice |
The drawing context for the PDF backend. |
@@ -140,7 +139,7 @@ public: |
* encoding and decoding might not be worth the space savings, |
* if any at all. |
*/ |
- void setDCTEncoder(EncodeToDCTStream encoder) { |
+ void setDCTEncoder(SkPicture::EncodeBitmap encoder) { |
fEncoder = encoder; |
} |
@@ -232,7 +231,7 @@ private: |
// Glyph ids used for each font on this device. |
SkAutoTDelete<SkPDFGlyphSetMap> fFontGlyphUsage; |
- EncodeToDCTStream fEncoder; |
+ SkPicture::EncodeBitmap fEncoder; |
SkPDFDevice(const SkISize& layerSize, const SkClipStack& existingClipStack, |
const SkRegion& existingClipRegion); |