Treat bad values passed to --images as a fatal error
authorscroggo <scroggo@google.com>
Wed, 3 Feb 2016 20:19:11 +0000 (12:19 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 3 Feb 2016 20:19:11 +0000 (12:19 -0800)
commit8673714d75ff1020f78217ff8839f1e18c3591e4
treed073ca2cba40e5ec2eb07dae0d70d4fb58a1d416
parent7a76f9c8f4de11e51b3495eec0d76be88a12adfa
Treat bad values passed to --images as a fatal error

If an option is passed to --images that is either a non-existent path or
a folder with no images matching the supported types, assume this is
an error and exit, so they can supply a valid path instead.

Share code between DM and nanobench in SkCommonFlags.

nanobench now behaves more like DM - it will check a directory for
images that match the supported extensions.

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

Review URL: https://codereview.chromium.org/1611323004
bench/nanobench.cpp
dm/DM.cpp
tools/flags/SkCommonFlags.cpp
tools/flags/SkCommonFlags.h