Index: dm/DMSrcSink.h |
diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h |
index 5f60dc59fdca507301d118e91934a30cf2265a7f..5a734a6f3c854102725101543c4219b0f948b71e 100644 |
--- a/dm/DMSrcSink.h |
+++ b/dm/DMSrcSink.h |
@@ -208,6 +208,24 @@ private: |
bool fRunSerially; |
}; |
+class ColorCodecSrc : public Src { |
+public: |
+ enum Mode { |
+ // Mimic legacy behavior and apply no color correction. |
+ kBaseline_Mode, |
+ }; |
+ |
+ ColorCodecSrc(Path, Mode); |
+ |
+ Error draw(SkCanvas*) const override; |
+ SkISize size() const override; |
+ Name name() const override; |
+ bool veto(SinkFlags) const override; |
+private: |
+ Path fPath; |
+ Mode fMode; |
+}; |
+ |
class SKPSrc : public Src { |
public: |
explicit SKPSrc(Path path); |