aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar cdalton <cdalton@nvidia.com>2016-02-17 11:10:16 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-17 11:10:16 -0800
commit91e457d17f8c6c06de33eb2bb430a90ba472eda5 (patch)
tree688e47f46f6c8ea4b53dcc3e8071460ff38eaaff
parent9bd5f746ca45ebec0ed3b54dcbd6cf5fc2754c3c (diff)
Fix "^" in --match flag for nanobench SKPs
-rw-r--r--bench/nanobench.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index a5c3ca11c8..c7cc3f0239 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -609,7 +609,7 @@ public:
static bool ReadPicture(const char* path, SkAutoTUnref<SkPicture>* pic) {
// Not strictly necessary, as it will be checked again later,
// but helps to avoid a lot of pointless work if we're going to skip it.
- if (SkCommandLineFlags::ShouldSkip(FLAGS_match, path)) {
+ if (SkCommandLineFlags::ShouldSkip(FLAGS_match, SkOSPath::Basename(path).c_str())) {
return false;
}