diff options
-rw-r--r-- | dm/DM.cpp | 2 | ||||
-rw-r--r-- | dm/DMSrcSink.h | 5 |
2 files changed, 6 insertions, 1 deletions
@@ -1146,7 +1146,7 @@ struct Task { if (!FLAGS_writePath.isEmpty()) { const char* ext = task.sink->fileExtension(); - if (!FLAGS_dont_write.contains(ext)) { + if (ext && !FLAGS_dont_write.contains(ext)) { if (data->getLength()) { WriteToDisk(task, md5, ext, data, data->getLength(), nullptr); SkASSERT(bitmap.drawsNothing()); diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h index 8b6ee0e5f4..c1af4d01b5 100644 --- a/dm/DMSrcSink.h +++ b/dm/DMSrcSink.h @@ -344,6 +344,11 @@ public: Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; + const char* fileExtension() const override { + // Suppress writing out results from this config - we just want to do our matching test + return nullptr; + } + private: std::unique_ptr<SkExecutor> fExecutor; |