Index: dm/DMSrcSink.cpp |
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp |
index 638af13b7b5c00f03e34a283b04aa5a3ef1d82c2..caf6f52fe24899bd45c24f2ae966306a13fa8027 100644 |
--- a/dm/DMSrcSink.cpp |
+++ b/dm/DMSrcSink.cpp |
@@ -1056,6 +1056,14 @@ SkISize SVGSrc::size() const { |
Name SVGSrc::name() const { return SkOSPath::Basename(fPath.c_str()); } |
+bool SVGSrc::veto(SinkFlags flags) const { |
+ // No need to test to non-(raster||gpu) or indirect backends. |
+ bool type_ok = flags.type == SinkFlags::kRaster |
+ || flags.type == SinkFlags::kGPU; |
+ |
+ return !type_ok || flags.approach != SinkFlags::kDirect; |
+} |
+ |
#endif // defined(SK_XML) |
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ |