Index: dm/DMSrcSink.h |
diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h |
index 57af9110627dbdf3887e0e1aa28a9edcc9c706b4..0807cb664454e173cfc3cc3d5848d2aac5f85d7d 100644 |
--- a/dm/DMSrcSink.h |
+++ b/dm/DMSrcSink.h |
@@ -13,6 +13,7 @@ |
#include "SkBBoxHierarchy.h" |
#include "SkBitmap.h" |
#include "SkCanvas.h" |
+#include "SkCodec.h" |
#include "SkData.h" |
#include "SkGPipe.h" |
#include "SkPicture.h" |
@@ -94,14 +95,20 @@ public: |
kNormal_Mode, |
kScanline_Mode, |
}; |
- CodecSrc(Path, Mode); |
+ enum DstColorType { |
+ kGetFromCanvas_DstColorType, |
+ kIndex8_Always_DstColorType, |
+ kGrayscale_Always_DstColorType, |
+ }; |
+ CodecSrc(Path, Mode, DstColorType); |
Error draw(SkCanvas*) const override; |
SkISize size() const override; |
Name name() const override; |
private: |
- Path fPath; |
- Mode fMode; |
+ Path fPath; |
+ Mode fMode; |
+ DstColorType fDstColorType; |
}; |