aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFDevice.h
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-02-19 18:50:05 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-19 18:50:05 -0800
commit8c92dc1dc281649f9e6b0ff534c25bc89dded3ea (patch)
treeed0cd2a6ea481cfe8c1359490bdd2f5dac3e47bd /src/pdf/SkPDFDevice.h
parent8e65712486c66108677a9b0a55ad3e7ca94db555 (diff)
Remove unused parameters to SkDocument::CreatePDF
All image compression currently uses (losseless) Deflate, not Jpeg. All clients simply use SkDocument::CreatePDF(stream). SampleApp and SkLua still use SkDocument::CreatePDF(path). Review URL: https://codereview.chromium.org/935843007
Diffstat (limited to 'src/pdf/SkPDFDevice.h')
-rw-r--r--src/pdf/SkPDFDevice.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pdf/SkPDFDevice.h b/src/pdf/SkPDFDevice.h
index af650055cd..de405c1317 100644
--- a/src/pdf/SkPDFDevice.h
+++ b/src/pdf/SkPDFDevice.h
@@ -137,7 +137,7 @@ public:
* encoding and decoding might not be worth the space savings,
* if any at all.
*/
- void setDCTEncoder(SkPicture::EncodeBitmap encoder) {
+ void setDCTEncoder(SkData* (*encoder)(size_t*, const SkBitmap&)) {
fEncoder = encoder;
}
@@ -245,7 +245,7 @@ private:
// Glyph ids used for each font on this device.
SkAutoTDelete<SkPDFGlyphSetMap> fFontGlyphUsage;
- SkPicture::EncodeBitmap fEncoder;
+ SkData* (*fEncoder)(size_t*, const SkBitmap&);
SkScalar fRasterDpi;
SkBitmap fLegacyBitmap;