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

Unified Diff: tools/PdfRenderer.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 | « tests/PDFPrimitivesTest.cpp ('k') | tools/render_pdfs_main.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/PdfRenderer.h
diff --git a/tools/PdfRenderer.h b/tools/PdfRenderer.h
index d2d1a5c67c3403b24d97a4deb4b6aef64b5b7036..be338e9ea3dd2787aa8832f3be945fd046fe8fbe 100644
--- a/tools/PdfRenderer.h
+++ b/tools/PdfRenderer.h
@@ -33,7 +33,7 @@ public:
virtual void render() = 0;
virtual void end();
- PdfRenderer(EncodeToDCTStream encoder)
+ PdfRenderer(SkPicture::EncodeBitmap encoder)
: fPicture(NULL)
, fPDFDevice(NULL)
, fEncoder(encoder)
@@ -48,7 +48,7 @@ protected:
SkAutoTUnref<SkCanvas> fCanvas;
SkPicture* fPicture;
SkPDFDevice* fPDFDevice;
- EncodeToDCTStream fEncoder;
+ SkPicture::EncodeBitmap fEncoder;
private:
typedef SkRefCnt INHERITED;
@@ -56,7 +56,7 @@ private:
class SimplePdfRenderer : public PdfRenderer {
public:
- SimplePdfRenderer(EncodeToDCTStream encoder)
+ SimplePdfRenderer(SkPicture::EncodeBitmap encoder)
: PdfRenderer(encoder) {}
virtual void render() SK_OVERRIDE;
« no previous file with comments | « tests/PDFPrimitivesTest.cpp ('k') | tools/render_pdfs_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698