Index: src/pdf/SkPDFCanon.cpp |
diff --git a/src/pdf/SkPDFCanon.cpp b/src/pdf/SkPDFCanon.cpp |
index 4fdaa0db628cf14b27fd4e26b966a913e5a7ead2..d7aea8ad69ff976128c83150d3a9345991eee259 100644 |
--- a/src/pdf/SkPDFCanon.cpp |
+++ b/src/pdf/SkPDFCanon.cpp |
@@ -149,3 +149,25 @@ const SkImage* SkPDFCanon::bitmapToImage(const SkBitmap& bm) { |
bm.copyTo(&n32bitmap, kN32_SkColorType); |
return *fBitmapToImageMap.set(key, SkImage::NewFromBitmap(n32bitmap)); |
} |
+ |
+sk_sp<SkPDFStream> SkPDFCanon::makeInvertFunction() { |
+ if (fInvertFunction) { |
+ return fInvertFunction; |
+ } |
+ fInvertFunction = SkPDFGraphicState::MakeInvertFunction(); |
+ return fInvertFunction; |
+} |
+sk_sp<SkPDFDict> SkPDFCanon::makeNoSmaskGraphicState() { |
+ if (fNoSmaskGraphicState) { |
+ return fNoSmaskGraphicState; |
+ } |
+ fNoSmaskGraphicState = SkPDFGraphicState::MakeNoSmaskGraphicState(); |
+ return fNoSmaskGraphicState; |
+} |
+sk_sp<SkPDFArray> SkPDFCanon::makeRangeObject() { |
+ if (fRangeObject) { |
+ return fRangeObject; |
+ } |
+ fRangeObject = SkPDFShader::MakeRangeObject(); |
+ return fRangeObject; |
+} |