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

Issue 389653004: share dm and command flags (Closed)

Created:
6 years, 5 months ago by caryclark
Modified:
6 years, 5 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

share dm and command flags Share command flags between dm and unit tests. Also, allow dm's core to be included by itself and iOSShell. Command line flags that are the same (or nearly the same) in DM and in skia_tests have been moved to common_flags. Authors, please check to see that the shared common flag is correct for the tool. For iOS, the 'tool_main' entry point has a wrapper to allow multiple tools to be statically linked in the iOSShell. Since SkCommandLineFlags::Parse can only be called once, these calls are disabled in the IOS build. Since the iOS app directory is dynamically assigned a name, use '@' to select it. (This is the same convention chosen by the Mobile Harness iOS file system utilities.) Move the heart of dm.gyp into dm.gypi so that it can be included by itself and iOSShell.gyp. Add tools/flags/SkCommonFlags.* to define and declare common command line flags. Add support for dm to iOSShell. BUG=skia: Committed: https://skia.googlesource.com/skia/+/17f0b6df7248b9bbdaddacc3a6c9c6efe4ae278e

Patch Set 1 #

Total comments: 12

Patch Set 2 : address comments #

Total comments: 6

Patch Set 3 : remove unused argc argv #

Patch Set 4 : add nanobench; move out common flags #

Patch Set 5 : add bench pictures #

Patch Set 6 : revert resources.cpp #

Patch Set 7 : separate out common flags for Android #

Patch Set 8 : revert bench pictures; fix formatting #

Patch Set 9 : rebase #

Patch Set 10 : remove merge files #

Patch Set 11 : leave bench.gyp alone #

Patch Set 12 : merge with dm changes #

Patch Set 13 : sync up with latest dm #

Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -160 lines) Patch
M bench/nanobench.cpp View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +6 lines, -16 lines 0 comments Download
M dm/DM.cpp View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +6 lines, -27 lines 0 comments Download
M dm/DMReporter.cpp View 1 2 3 1 chunk +1 line, -4 lines 0 comments Download
M dm/DMTask.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -7 lines 0 comments Download
M dm/DMWriteTask.cpp View 2 chunks +6 lines, -1 line 0 comments Download
M experimental/SimpleiOSApp/SimpleApp.mm View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +6 lines, -5 lines 0 comments Download
M experimental/iOSSampleApp/Shared/skia_ios.mm View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -5 lines 0 comments Download
M gyp/bench.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M gyp/dm.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -51 lines 0 comments Download
A gyp/dm.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +55 lines, -0 lines 0 comments Download
M gyp/flags.gyp View 1 2 3 4 5 6 1 chunk +17 lines, -0 lines 0 comments Download
M gyp/iOSShell.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -2 lines 0 comments Download
M gyp/pathops_unittest.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -1 line 0 comments Download
M gyp/tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M include/views/SkApplication.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +11 lines, -0 lines 0 comments Download
M samplecode/SampleApp.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -6 lines 0 comments Download
M tests/skia_test.cpp View 1 2 4 chunks +6 lines, -23 lines 0 comments Download
A tools/flags/SkCommonFlags.h View 1 2 3 4 5 6 7 8 1 chunk +28 lines, -0 lines 0 comments Download
A tools/flags/SkCommonFlags.cpp View 1 2 3 4 5 6 7 8 1 chunk +50 lines, -0 lines 0 comments Download
M tools/iOSShell.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +17 lines, -10 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
caryclark
6 years, 5 months ago (2014-07-11 20:02:19 UTC) #1
scroggo
lgtm. I'm fine with you checking in as-is, but I do have some suggestions as ...
6 years, 5 months ago (2014-07-11 21:12:15 UTC) #2
caryclark
https://codereview.chromium.org/389653004/diff/1/gyp/dm.gyp File gyp/dm.gyp (right): https://codereview.chromium.org/389653004/diff/1/gyp/dm.gyp#newcode8 gyp/dm.gyp:8: 'type': 'executable', On 2014/07/11 21:12:14, scroggo wrote: > I ...
6 years, 5 months ago (2014-07-14 12:24:46 UTC) #3
caryclark
https://codereview.chromium.org/389653004/diff/1/tests/skia_test.cpp File tests/skia_test.cpp (right): https://codereview.chromium.org/389653004/diff/1/tests/skia_test.cpp#newcode124 tests/skia_test.cpp:124: int TOOL_MAIN(int argc, char** argv); I checked with Derek ...
6 years, 5 months ago (2014-07-14 13:00:47 UTC) #4
scroggo
LGTM https://codereview.chromium.org/389653004/diff/20001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/389653004/diff/20001/dm/DM.cpp#newcode224 dm/DM.cpp:224: int dm_main(int argc, char** argv) { argc and ...
6 years, 5 months ago (2014-07-14 13:24:16 UTC) #5
mtklein
What would this all look like if we just remove support for tests and replace ...
6 years, 5 months ago (2014-07-14 13:29:59 UTC) #6
caryclark
https://codereview.chromium.org/389653004/diff/20001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/389653004/diff/20001/dm/DM.cpp#newcode224 dm/DM.cpp:224: int dm_main(int argc, char** argv) { On 2014/07/14 13:24:16, ...
6 years, 5 months ago (2014-07-14 15:07:12 UTC) #7
caryclark
The CQ bit was checked by caryclark@google.com
6 years, 5 months ago (2014-07-14 15:07:37 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/caryclark@google.com/389653004/40001
6 years, 5 months ago (2014-07-14 15:07:58 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: Build-Ubuntu13.10-GCC4.8-Arm7-Debug-Android-Trybot on tryserver.skia ...
6 years, 5 months ago (2014-07-14 15:34:55 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-14 15:39:25 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu13.10-GCC4.8-Arm7-Debug-Android-Trybot on tryserver.skia (http://108.170.220.76:10117/builders/Build-Ubuntu13.10-GCC4.8-Arm7-Debug-Android-Trybot/builds/534)
6 years, 5 months ago (2014-07-14 15:39:26 UTC) #12
caryclark
put Jim on the review so he can play with the CL
6 years, 5 months ago (2014-07-15 14:15:24 UTC) #13
caryclark
The CQ bit was checked by caryclark@google.com
6 years, 5 months ago (2014-07-22 15:49:16 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/caryclark@google.com/389653004/230001
6 years, 5 months ago (2014-07-22 15:49:53 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-22 15:50:00 UTC) #16
commit-bot: I haz the power
Presubmit check for 389653004-230001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 5 months ago (2014-07-22 15:50:01 UTC) #17
caryclark
Brian, please review (addition to public api)
6 years, 5 months ago (2014-07-22 15:51:23 UTC) #18
bsalomon
On 2014/07/22 15:51:23, caryclark wrote: > Brian, please review (addition to public api) lgtm
6 years, 5 months ago (2014-07-22 16:02:21 UTC) #19
caryclark
The CQ bit was checked by caryclark@google.com
6 years, 5 months ago (2014-07-22 17:03:03 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/caryclark@google.com/389653004/230001
6 years, 5 months ago (2014-07-22 17:03:59 UTC) #21
commit-bot: I haz the power
6 years, 5 months ago (2014-07-22 17:15:40 UTC) #22
Message was sent while issue was closed.
Change committed as 17f0b6df7248b9bbdaddacc3a6c9c6efe4ae278e

Powered by Google App Engine
This is Rietveld 408576698