Index: dm/DMSrcSink.h |
diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h |
index 0e11633b1886cfe60f1b5c0670b7c626f05e53f4..dfc4955b5a03da4e5f00adcfa9931eca4bae1afc 100644 |
--- a/dm/DMSrcSink.h |
+++ b/dm/DMSrcSink.h |
@@ -333,6 +333,15 @@ public: |
SinkFlags flags() const override { return SinkFlags{ SinkFlags::kVector, SinkFlags::kDirect }; } |
}; |
+class PipeSink : public Sink { |
+public: |
+ PipeSink(); |
+ |
+ Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
+ const char* fileExtension() const override { return "skpipe"; } |
+ SinkFlags flags() const override { return SinkFlags{ SinkFlags::kVector, SinkFlags::kDirect }; } |
+}; |
+ |
class RasterSink : public Sink { |
public: |
explicit RasterSink(SkColorType, sk_sp<SkColorSpace> = nullptr); |
@@ -408,6 +417,12 @@ public: |
Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
}; |
+class ViaPipe : public Via { |
+public: |
+ explicit ViaPipe(Sink* sink) : Via(sink) {} |
+ Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; |
+}; |
+ |
class ViaDefer : public Via { |
public: |
explicit ViaDefer(Sink* sink) : Via(sink) {} |