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

Unified Diff: src/pdf/SkPDFImage.h

Issue 946493002: PDF: remove unused SkPDFDevice::setDCTEncoder() (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: error: unused variable 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
Index: src/pdf/SkPDFImage.h
diff --git a/src/pdf/SkPDFImage.h b/src/pdf/SkPDFImage.h
index cfef38cbe27fc98bcd6540d62ea3b6775924e3cf..8e36542f0ba2f614feffb221187c973970274dcc 100644
--- a/src/pdf/SkPDFImage.h
+++ b/src/pdf/SkPDFImage.h
@@ -23,13 +23,8 @@ struct SkIRect;
/**
* Return the mose efficient availible encoding of the given bitmap.
- *
- * If the bitmap has encoded JPEG data and that data can be embedded
mtklein 2015/02/20 03:36:13 This seems like a good idea, both to build a bette
hal.canary 2015/02/20 12:52:57 This was a separate bit of logic that had a bug in
- * into the PDF output stream directly, use that. Otherwise, fall
- * back on SkPDFImage::CreateImage.
*/
-SkPDFObject* SkPDFCreateImageObject(
- const SkBitmap&, const SkIRect& subset, SkData* (*)(size_t*, const SkBitmap&));
+SkPDFObject* SkPDFCreateImageObject(const SkBitmap&, const SkIRect& subset);
/** \class SkPDFImage
@@ -49,8 +44,7 @@ public:
* the given parameters.
*/
static SkPDFImage* CreateImage(const SkBitmap& bitmap,
- const SkIRect& srcRect,
- SkData* (*encoder)(size_t*, const SkBitmap&));
+ const SkIRect& srcRect);
virtual ~SkPDFImage();
@@ -62,7 +56,6 @@ private:
SkBitmap fBitmap;
bool fIsAlpha;
SkIRect fSrcRect;
- SkData* (*fEncoder)(size_t*, const SkBitmap&);
bool fStreamValid;
/** Create a PDF image XObject. Entries for the image properties are
@@ -77,11 +70,9 @@ private:
* @param isAlpha Whether or not this is the alpha of an image.
* @param srcRect The clipping applied to bitmap before generating
* imageData.
- * @param encoder A function used to encode the bitmap for compression.
- * May be NULL.
*/
SkPDFImage(SkStream* stream, const SkBitmap& bitmap, bool isAlpha,
- const SkIRect& srcRect, SkData* (*encoder)(size_t*, const SkBitmap&));
+ const SkIRect& srcRect);
/** Copy constructor, used to generate substitutes.
* @param image The SkPDFImage to copy.

Powered by Google App Engine
This is Rietveld 408576698