aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm
diff options
context:
space:
mode:
authorGravatar Florin Malita <fmalita@chromium.org>2017-06-16 15:31:17 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-16 20:04:14 +0000
commit93323eb401dc9003dda881ac83222d115151947f (patch)
tree74e4e137e55053bd48c6386cefccc6c1113e5a22 /dm
parent3e2ffd74b57a917a4df8d64785a18cf79ff2aacd (diff)
Enable SVG DM sources for vector sinks
SVG->SKP is a useful/valid case. Change-Id: I81fd7b8d5e422b4dbf55f59eca9e9471ab578180 Reviewed-on: https://skia-review.googlesource.com/20153 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'dm')
-rw-r--r--dm/DMSrcSink.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp
index 28b81d2718..6e95b53386 100644
--- a/dm/DMSrcSink.cpp
+++ b/dm/DMSrcSink.cpp
@@ -1260,9 +1260,10 @@ SkISize SVGSrc::size() const {
Name SVGSrc::name() const { return fName; }
bool SVGSrc::veto(SinkFlags flags) const {
- // No need to test to non-(raster||gpu) or indirect backends.
+ // No need to test to non-(raster||gpu||vector) or indirect backends.
bool type_ok = flags.type == SinkFlags::kRaster
- || flags.type == SinkFlags::kGPU;
+ || flags.type == SinkFlags::kGPU
+ || flags.type == SinkFlags::kVector;
return !type_ok || flags.approach != SinkFlags::kDirect;
}