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

Unified Diff: src/doc/SkDocument_PDF.cpp

Issue 1505763003: SkDocument::setDCTEncoder() for old versions of webkit (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove compile flag; unit test Created 5 years 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/doc/SkDocument_PDF.cpp
diff --git a/src/doc/SkDocument_PDF.cpp b/src/doc/SkDocument_PDF.cpp
index ff7a038b6bf268c9a9b85ba2dbd1da38eb1b5035..066098a6104989bfd523883fb5d7d15c92dabd7f 100644
--- a/src/doc/SkDocument_PDF.cpp
+++ b/src/doc/SkDocument_PDF.cpp
@@ -331,6 +331,10 @@ public:
this->close();
}
+ void setDCTEncoder(SkData* (*encoder)(const SkPixmap&)) override {
+ fCanon.fEncoder = encoder;
+ }
+
protected:
SkCanvas* onBeginPage(SkScalar width, SkScalar height,
const SkRect& trimBox) override {
« no previous file with comments | « include/core/SkDocument.h ('k') | src/pdf/SkPDFBitmap.h » ('j') | tests/PDFDocumentTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698