diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp index 04dbd01167..78b556d3c2 100644 --- a/bench/nanobench.cpp +++ b/bench/nanobench.cpp @@ -702,6 +702,9 @@ public: } static sk_sp ReadSVGPicture(const char* path) { + if (CommandLineFlags::ShouldSkip(FLAGS_match, SkOSPath::Basename(path).c_str())) { + return nullptr; + } sk_sp data(SkData::MakeFromFileName(path)); if (!data) { SkDebugf("Could not read %s.\n", path);