apply --match to image file names too, like we do for .skps
authormtklein <mtklein@chromium.org>
Mon, 11 Jan 2016 17:04:21 +0000 (09:04 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 11 Jan 2016 17:04:21 +0000 (09:04 -0800)
commit6f0ff91c6561549a1ea8de3e8896b80a584c45b9
tree4cc9e9ece85e2d0b0542ea42e72d3ef89a04cc1c
parent4897ff20fc68242d8a3469721f381f03987a0723
apply --match to image file names too, like we do for .skps

This should make skipping an image much cheaper.

Before:
   $ time out/Release/nanobench --images resources/ --match sdkjlfasjlfds
        4.65 real         4.41 user         0.19 sys
   $ time out/Release/nanobench --images resources/ --match sdkjlfasjlfds
        0.05 real         0.03 user         0.01 sys

The effect should be much more dramatic when there are more images to skip (e.g. on the bots).
This cuts about 6 minutes off the Debug CQ trybot.

BUG=skia:4768
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1577873002

Review URL: https://codereview.chromium.org/1577873002
bench/nanobench.cpp