Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Unified Diff: include/pdf/SkPDFDevice.h

Issue 25054002: Use SkPicture::ExtractBitmap callback in pdf too. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix return on another funtion with signature change Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/gmmain.cpp ('k') | src/pdf/SkPDFImage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « gm/gmmain.cpp ('k') | src/pdf/SkPDFImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698