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

Issue 12521019: SkFlags now follows proper dashing convention. (Closed)

Created:
7 years, 9 months ago by scroggo
Modified:
7 years, 8 months ago
Reviewers:
reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

SkFlags now follows proper dashing convention. Two dashes are used for flags with multiple characters, and one dash is used for flags with single characters. In GM, changed '-wp' to '-p' (the command to choose a directory for writing SKPs) to fit with the convention. In render_pictures and bench_pictures, changed the flag for read and write path to have full names (which are consistent) and use the old single character names as their shortcuts. SkCommandLineFlags: Updated the documentation, and only allow -h or --help for help (again, to match the convention). Also enforce the single character limit for the short name, and require the full name to be at least two characters. Provide full names for skhello. BUG=https://code.google.com/p/skia/issues/detail?id=1174 Committed: https://code.google.com/p/skia/source/detail?r=8582

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -39 lines) Patch
M gm/gmmain.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tools/PictureRenderingFlags.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tools/bench_pictures_main.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M tools/flags/SkCommandLineFlags.h View 8 chunks +10 lines, -11 lines 2 comments Download
M tools/flags/SkCommandLineFlags.cpp View 4 chunks +15 lines, -9 lines 0 comments Download
M tools/render_pictures_main.cpp View 3 chunks +7 lines, -7 lines 0 comments Download
M tools/skhello.cpp View 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
scroggo
7 years, 9 months ago (2013-03-21 21:33:50 UTC) #1
reed1
lgtm Suggestion about the macro name, for clarity, but just a suggestion. https://codereview.chromium.org/12521019/diff/1/tools/flags/SkCommandLineFlags.h File tools/flags/SkCommandLineFlags.h ...
7 years, 9 months ago (2013-03-21 22:06:59 UTC) #2
scroggo
https://codereview.chromium.org/12521019/diff/1/tools/flags/SkCommandLineFlags.h File tools/flags/SkCommandLineFlags.h (right): https://codereview.chromium.org/12521019/diff/1/tools/flags/SkCommandLineFlags.h#newcode152 tools/flags/SkCommandLineFlags.h:152: #define DEFINE_string2(name, shortName, defaultValue, helpString) \ On 2013/03/21 22:06:59, ...
7 years, 9 months ago (2013-03-22 17:52:31 UTC) #3
reed1
lgtm DEFINE_shortcut_string?
7 years, 9 months ago (2013-03-22 18:00:04 UTC) #4
scroggo
On 2013/03/22 18:00:04, reed1 wrote: > lgtm > > DEFINE_shortcut_string? The macro defines both a ...
7 years, 9 months ago (2013-03-22 18:11:23 UTC) #5
reed1
On 2013/03/22 18:11:23, scroggo wrote: > On 2013/03/22 18:00:04, reed1 wrote: > > lgtm > ...
7 years, 9 months ago (2013-03-22 18:45:29 UTC) #6
scroggo
7 years, 8 months ago (2013-04-09 21:25:57 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 manually as r8582 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698