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

Unified Diff: src/pdf/SkPDFImage.h

Issue 935843007: Remove unused parameters to SkDocument::CreatePDF (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove SkPicture::EncodeBitmap Created 5 years, 10 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 | « src/pdf/SkPDFDevice.h ('k') | src/pdf/SkPDFImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFImage.h
diff --git a/src/pdf/SkPDFImage.h b/src/pdf/SkPDFImage.h
index 24332cd02df572b09a0137b0d51b1a7cc9062d9b..cfef38cbe27fc98bcd6540d62ea3b6775924e3cf 100644
--- a/src/pdf/SkPDFImage.h
+++ b/src/pdf/SkPDFImage.h
@@ -29,7 +29,7 @@ struct SkIRect;
* back on SkPDFImage::CreateImage.
*/
SkPDFObject* SkPDFCreateImageObject(
- const SkBitmap&, const SkIRect& subset, SkPicture::EncodeBitmap);
+ const SkBitmap&, const SkIRect& subset, SkData* (*)(size_t*, const SkBitmap&));
/** \class SkPDFImage
@@ -50,7 +50,7 @@ public:
*/
static SkPDFImage* CreateImage(const SkBitmap& bitmap,
const SkIRect& srcRect,
- SkPicture::EncodeBitmap encoder);
+ SkData* (*encoder)(size_t*, const SkBitmap&));
virtual ~SkPDFImage();
@@ -62,7 +62,7 @@ private:
SkBitmap fBitmap;
bool fIsAlpha;
SkIRect fSrcRect;
- SkPicture::EncodeBitmap fEncoder;
+ SkData* (*fEncoder)(size_t*, const SkBitmap&);
bool fStreamValid;
/** Create a PDF image XObject. Entries for the image properties are
@@ -81,7 +81,7 @@ private:
* May be NULL.
*/
SkPDFImage(SkStream* stream, const SkBitmap& bitmap, bool isAlpha,
- const SkIRect& srcRect, SkPicture::EncodeBitmap encoder);
+ const SkIRect& srcRect, SkData* (*encoder)(size_t*, const SkBitmap&));
/** Copy constructor, used to generate substitutes.
* @param image The SkPDFImage to copy.
« no previous file with comments | « src/pdf/SkPDFDevice.h ('k') | src/pdf/SkPDFImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698