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

Issue 14366034: Treat default command line argument properly. (Closed)

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

Description

Treat default command line argument properly. In SkCommandLineFlags, if the client sets a default value of multiple arguments (e.g. "arg0 arg1 ..."), set the actual defaults to all of those arguments separately (i.e. an array with [0] == "arg0", [1] == "arg1", ...), rather than as one string (i.e. [0] == "arg0 arg1 ..."). Remove the hack that worked around this bug. Also move the increasingly complicated implementation of SkFlagInfo::CreateStringFlag into the cpp file. BUG=https://code.google.com/p/skia/issues/detail?id=1237 Committed: https://code.google.com/p/skia/source/detail?r=8845

Patch Set 1 #

Total comments: 10

Patch Set 2 : Respond to comments. #

Total comments: 2

Patch Set 3 : pType -> p<Type> #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -22 lines) Patch
M gm/gmmain.cpp View 1 chunk +0 lines, -9 lines 0 comments Download
M tools/flags/SkCommandLineFlags.h View 1 2 5 chunks +41 lines, -13 lines 0 comments Download
M tools/flags/SkCommandLineFlags.cpp View 1 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
scroggo
7 years, 8 months ago (2013-04-23 15:57:32 UTC) #1
epoger
https://codereview.chromium.org/14366034/diff/1/tools/flags/SkCommandLineFlags.cpp File tools/flags/SkCommandLineFlags.cpp (right): https://codereview.chromium.org/14366034/diff/1/tools/flags/SkCommandLineFlags.cpp#newcode14 tools/flags/SkCommandLineFlags.cpp:14: SkFlagInfo* info = SkNEW_ARGS(SkFlagInfo, (name, shortName, kString_FlagType, helpString)); Is ...
7 years, 8 months ago (2013-04-23 16:54:13 UTC) #2
scroggo
https://codereview.chromium.org/14366034/diff/1/tools/flags/SkCommandLineFlags.cpp File tools/flags/SkCommandLineFlags.cpp (right): https://codereview.chromium.org/14366034/diff/1/tools/flags/SkCommandLineFlags.cpp#newcode14 tools/flags/SkCommandLineFlags.cpp:14: SkFlagInfo* info = SkNEW_ARGS(SkFlagInfo, (name, shortName, kString_FlagType, helpString)); On ...
7 years, 8 months ago (2013-04-24 18:42:35 UTC) #3
epoger
LGTM Thanks for adding the comments! https://codereview.chromium.org/14366034/diff/6001/tools/flags/SkCommandLineFlags.h File tools/flags/SkCommandLineFlags.h (right): https://codereview.chromium.org/14366034/diff/6001/tools/flags/SkCommandLineFlags.h#newcode232 tools/flags/SkCommandLineFlags.h:232: * @param pType ...
7 years, 8 months ago (2013-04-24 19:12:54 UTC) #4
scroggo
https://codereview.chromium.org/14366034/diff/6001/tools/flags/SkCommandLineFlags.h File tools/flags/SkCommandLineFlags.h (right): https://codereview.chromium.org/14366034/diff/6001/tools/flags/SkCommandLineFlags.h#newcode232 tools/flags/SkCommandLineFlags.h:232: * @param pType Pointer to a global variable which ...
7 years, 8 months ago (2013-04-24 19:23:47 UTC) #5
scroggo
7 years, 8 months ago (2013-04-24 19:25:32 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 manually as r8845 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698