Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(375)

Issue 6843125: Update filter tool to write out paths to .cpp file (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by robertphillips
Modified:
11 years, 11 months ago
Reviewers:
DerekS
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Update filter tool to write out paths to .cpp file

Patch Set 1 #

Patch Set 2 : Minor cleanup #

Total comments: 2

Patch Set 3 : Split out path utilities into their own file #

Total comments: 2

Patch Set 4 : Improved usage comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -9 lines) Patch
M gyp/tools.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M tools/filtermain.cpp View 1 2 9 chunks +63 lines, -9 lines 0 comments Download
A tools/path_utils.h View 1 2 3 1 chunk +47 lines, -0 lines 0 comments Download
A tools/path_utils.cpp View 1 2 1 chunk +134 lines, -0 lines 0 comments Download

Messages

Total messages: 5
robertphillips
12 years ago (2012-11-29 20:37:34 UTC) #1
DerekS
https://codereview.appspot.com/6843125/diff/1001/tools/filtermain.cpp File tools/filtermain.cpp (right): https://codereview.appspot.com/6843125/diff/1001/tools/filtermain.cpp#newcode46 tools/filtermain.cpp:46: static void dump_path_prefix(SkFILEWStream* pathStream) { I think we should ...
12 years ago (2012-11-29 20:53:15 UTC) #2
robertphillips
https://codereview.appspot.com/6843125/diff/1001/tools/filtermain.cpp File tools/filtermain.cpp (right): https://codereview.appspot.com/6843125/diff/1001/tools/filtermain.cpp#newcode46 tools/filtermain.cpp:46: static void dump_path_prefix(SkFILEWStream* pathStream) { On 2012/11/29 20:53:16, DerekS ...
11 years, 11 months ago (2012-12-07 14:32:43 UTC) #3
DerekS
lgtm with one nit. https://codereview.appspot.com/6843125/diff/5001/tools/path_utils.cpp File tools/path_utils.cpp (right): https://codereview.appspot.com/6843125/diff/5001/tools/path_utils.cpp#newcode13 tools/path_utils.cpp:13: static int gCurPathID = 0; ...
11 years, 11 months ago (2012-12-07 17:34:52 UTC) #4
robertphillips
11 years, 11 months ago (2012-12-07 20:56:33 UTC) #5
committed as r6714

https://codereview.appspot.com/6843125/diff/5001/tools/path_utils.cpp
File tools/path_utils.cpp (right):

https://codereview.appspot.com/6843125/diff/5001/tools/path_utils.cpp#newcode13
tools/path_utils.cpp:13: static int gCurPathID = 0;
On 2012/12/07 17:34:52, DerekS wrote:
> having this as a global seems fragile since you can't call these helper
> functions more than 1x without causing problems.  In particular the
> dump_path_suffix function would have problems.  My suggestion is to just
> document that you can only call it one time per run of the program or just
> document that it isn't thread safe and provide a reset function.

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b