Index: dm/DMSrcSink.h |
diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h |
index dcd169e32283977beabfb2655a821374370be0e8..ace7c71c84ce171f41e93ec5005d95a5b4f8c534 100644 |
--- a/dm/DMSrcSink.h |
+++ b/dm/DMSrcSink.h |
@@ -95,6 +95,33 @@ private: |
const int fDivisor; |
}; |
+class CodecSrc : public Src { |
+public: |
+ enum SkipZeroes { |
+ kSkipZeroes, |
+ kNo_SkipZeroes, |
+ }; |
+ |
+ enum Scanlines { |
+ kNormal_Scanlines, |
+ kIterator_Scanlines, |
+ kScaling_Scanlines, |
+ kSubset_Scanlines, |
+ }; |
+ |
+ CodecSrc(Path path, SkColorType dstCT, SkAlphaType dstAT, SkipZeroes, Scanlines); |
+ |
+ Error draw(SkCanvas*) const SK_OVERRIDE; |
+ SkISize size() const SK_OVERRIDE; |
+ Name name() const SK_OVERRIDE; |
+private: |
+ Path fPath; |
+ SkColorType fDstColorType; |
+ SkAlphaType fDstAlphaType; |
+ SkipZeroes fSkipZeroes; |
+ Scanlines fScanlines; |
+}; |
+ |
class SKPSrc : public Src { |
public: |
explicit SKPSrc(Path path); |