aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm/DMSrcSink.h
diff options
context:
space:
mode:
authorGravatar fmalita <fmalita@chromium.org>2016-08-03 19:53:36 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-03 19:53:36 -0700
commita2b9fdfe0b2dd3408064b7cfd1bf8677eaf06491 (patch)
treeb046a4ee1da0e8b599d558fffa538d1487321b03 /dm/DMSrcSink.h
parentb97963401220da82455e0dfe1f7206e7e8b249e1 (diff)
Add an SVG DM source
R=mtklein@google.com,robertphillips@google.com,stephana@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2209593004 Review-Url: https://codereview.chromium.org/2209593004
Diffstat (limited to 'dm/DMSrcSink.h')
-rw-r--r--dm/DMSrcSink.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h
index b05fdb0439..a54ddb8d7f 100644
--- a/dm/DMSrcSink.h
+++ b/dm/DMSrcSink.h
@@ -248,6 +248,21 @@ private:
Path fPath;
};
+#if defined(SK_XML)
+class SVGSrc : public Src {
+public:
+ explicit SVGSrc(Path path);
+
+ Error draw(SkCanvas*) const override;
+ SkISize size() const override;
+ Name name() const override;
+
+private:
+ Path fPath;
+
+ typedef Src INHERITED;
+};
+#endif // SK_XML
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
class MSKPSrc : public Src {