From f1942de288ad593b1348029aefaad2cf99ad57ea Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Wed, 30 Aug 2017 14:50:22 -0400 Subject: Suppress file output for the gltestthreading config Bug: skia: Change-Id: Icd905ea7e60a05bc3903eb85d111dcf73ce2c4dd Reviewed-on: https://skia-review.googlesource.com/40690 Reviewed-by: Greg Daniel Commit-Queue: Brian Osman --- dm/DM.cpp | 2 +- dm/DMSrcSink.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'dm') diff --git a/dm/DM.cpp b/dm/DM.cpp index 1e02d25b7b..1c89ae0fdd 100644 --- a/dm/DM.cpp +++ b/dm/DM.cpp @@ -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 fExecutor; -- cgit v1.2.3