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

Unified Diff: src/pdf/SkPDFDevice.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
« no previous file with comments | « no previous file | src/pdf/SkPDFDevice.cpp » ('j') | src/pdf/SkPDFDevice.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFDevice.h
diff --git a/src/pdf/SkPDFDevice.h b/src/pdf/SkPDFDevice.h
index de405c1317ed5db53a8276b104f684333a949f72..4c0f7524053779b4092cbaedbe28fdc0fa38c77f 100644
--- a/src/pdf/SkPDFDevice.h
+++ b/src/pdf/SkPDFDevice.h
@@ -126,21 +126,6 @@ public:
*/
SK_API void setDrawingArea(DrawingArea drawingArea);
- /** Sets the DCTEncoder for images.
- * @param encoder The encoder to encode a bitmap as JPEG (DCT).
- * Result of encodings are cached, if the encoder changes the
- * behaivor dynamically and an image is added to a second catalog,
- * we will likely use the result of the first encoding call.
- * By returning false from the encoder function, the encoder result
- * is not used.
- * Callers might not want to encode small images, as the time spent
- * encoding and decoding might not be worth the space savings,
- * if any at all.
- */
- void setDCTEncoder(SkData* (*encoder)(size_t*, const SkBitmap&)) {
- fEncoder = encoder;
- }
-
// PDF specific methods.
/** Returns the resource dictionary for this device.
@@ -245,7 +230,6 @@ private:
// Glyph ids used for each font on this device.
SkAutoTDelete<SkPDFGlyphSetMap> fFontGlyphUsage;
- SkData* (*fEncoder)(size_t*, const SkBitmap&);
SkScalar fRasterDpi;
SkBitmap fLegacyBitmap;
« no previous file with comments | « no previous file | src/pdf/SkPDFDevice.cpp » ('j') | src/pdf/SkPDFDevice.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698