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

Unified Diff: src/pdf/SkPDFCanon.h

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/pdf/SkPDFCanon.h
diff --git a/src/pdf/SkPDFCanon.h b/src/pdf/SkPDFCanon.h
index 3d2ba6a77d1b4b2ea36023814c11080553e33e65..63f11d5670e2148e2d777a702417764bb73242f0 100644
--- a/src/pdf/SkPDFCanon.h
+++ b/src/pdf/SkPDFCanon.h
@@ -49,6 +49,7 @@ private:
*/
class SkPDFCanon : SkNoncopyable {
public:
+ SkPDFCanon() : fEncoder(nullptr) {}
~SkPDFCanon() { this->reset(); }
// reset to original setting, unrefs all objects.
@@ -80,6 +81,8 @@ public:
SkTHashMap<uint32_t, bool> fCanEmbedTypeface;
+ SkData* (*fEncoder)(const SkPixmap&);
+
private:
struct FontRec {
SkPDFFont* fFont;
« no previous file with comments | « src/pdf/SkPDFBitmap.cpp ('k') | src/pdf/SkPDFDevice.cpp » ('j') | tests/PDFDocumentTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698