Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(675)

Issue 1611323004: Treat bad values passed to --images as a fatal error (Closed)

Created:
4 years, 11 months ago by scroggo
Modified:
4 years, 10 months ago
Reviewers:
msarett, borenet, mtklein
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

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 Committed: https://skia.googlesource.com/skia/+/8673714d75ff1020f78217ff8839f1e18c3591e4

Patch Set 1 : Make DM exit when passed a bad image directory #

Patch Set 2 : Do the same for nanobench #

Patch Set 3 : Update help text #

Patch Set 4 : Make nanobench work again when passing image dir with images #

Patch Set 5 : Add FIXMEs #

Patch Set 6 : Share code #

Total comments: 1

Patch Set 7 : line length; exit with non-existant file #

Total comments: 4

Patch Set 8 : Respond to comments #

Patch Set 9 : Clean up comments #

Patch Set 10 : Rebase #

Total comments: 2

Patch Set 11 : Define SK_CODEC_DECODES_RAW in flags project #

Patch Set 12 : Rebase #

Patch Set 13 : gyp fixes #

Patch Set 14 : Another gyp fix #

Total comments: 2

Patch Set 15 : Better gyp fixes #

Patch Set 16 : Remove duplicate gyp fixes that are not needed #

Total comments: 3

Patch Set 17 : exit -> return #

Patch Set 18 : Rebase; remove DNG specific changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -42 lines) Patch
M bench/nanobench.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -13 lines 0 comments Download
M dm/DM.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +21 lines, -27 lines 0 comments Download
M tools/flags/SkCommonFlags.h View 1 2 3 4 5 6 7 8 9 2 chunks +16 lines, -0 lines 0 comments Download
M tools/flags/SkCommonFlags.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +45 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (14 generated)
scroggo
Adding: - Eric, who requested the feature - Mike, for input on DM/nanobench - Matt, ...
4 years, 11 months ago (2016-01-22 17:54:59 UTC) #6
mtklein
https://codereview.chromium.org/1611323004/diff/120001/tools/flags/SkCommonFlags.h File tools/flags/SkCommonFlags.h (right): https://codereview.chromium.org/1611323004/diff/120001/tools/flags/SkCommonFlags.h#newcode34 tools/flags/SkCommonFlags.h:34: namespace SkCommonFlags { I don't this needs a namespace ...
4 years, 11 months ago (2016-01-22 18:05:15 UTC) #7
mtklein
> I don't* this needs a namespace or an SkPrefix. We're not shipping this code ...
4 years, 11 months ago (2016-01-22 18:05:46 UTC) #8
scroggo
https://codereview.chromium.org/1611323004/diff/120001/tools/flags/SkCommonFlags.h File tools/flags/SkCommonFlags.h (right): https://codereview.chromium.org/1611323004/diff/120001/tools/flags/SkCommonFlags.h#newcode34 tools/flags/SkCommonFlags.h:34: namespace SkCommonFlags { On 2016/01/22 18:05:15, mtklein wrote: > ...
4 years, 11 months ago (2016-01-27 15:43:38 UTC) #10
msarett
"- Matt, for thoughts on images" Image related changes look good to me.
4 years, 11 months ago (2016-01-27 16:17:56 UTC) #11
mtklein
tools lgtm https://codereview.chromium.org/1611323004/diff/260001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1611323004/diff/260001/dm/DM.cpp#newcode1104 dm/DM.cpp:1104: exit(1); return 1?
4 years, 11 months ago (2016-01-27 19:38:06 UTC) #12
scroggo
https://codereview.chromium.org/1611323004/diff/260001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/1611323004/diff/260001/dm/DM.cpp#newcode1104 dm/DM.cpp:1104: exit(1); On 2016/01/27 19:38:05, mtklein wrote: > return 1? ...
4 years, 11 months ago (2016-01-27 19:42:27 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1611323004/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1611323004/320001
4 years, 10 months ago (2016-01-28 16:25:37 UTC) #16
commit-bot: I haz the power
Committed patchset #17 (id:320001) as https://skia.googlesource.com/skia/+/7579786f3bd5a8fda84a1abc45b16213c3371f93
4 years, 10 months ago (2016-01-28 16:41:13 UTC) #18
scroggo
A revert of this CL (patchset #17 id:320001) has been created in https://codereview.chromium.org/1653543002/ by scroggo@google.com. ...
4 years, 10 months ago (2016-01-29 22:17:38 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1611323004/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1611323004/340001
4 years, 10 months ago (2016-02-03 19:57:43 UTC) #24
commit-bot: I haz the power
4 years, 10 months ago (2016-02-03 20:19:15 UTC) #26
Message was sent while issue was closed.
Committed patchset #18 (id:340001) as
https://skia.googlesource.com/skia/+/8673714d75ff1020f78217ff8839f1e18c3591e4

Powered by Google App Engine
This is Rietveld 408576698