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

Issue 15747004: Add path utils, plus a test for it. (Closed)

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

Description

Add path utils, plus a test for it. SkOSFile: Added class SkOSPath with functions for modifying strings representing path names. OSPathTest.cpp: Test of the new utilities. factory.cpp: Use SkPathJoin. gmmain and gm_expectations: Use SkOSPath::SkPathJoin instead of a local version. skimage_main.cpp: Use the new location of SkPathJoin and SkBasename. R=epoger@google.com Committed: https://code.google.com/p/skia/source/detail?r=9277

Patch Set 1 #

Patch Set 2 : Remove extra SkPathJoin implementation. #

Total comments: 16

Patch Set 3 : Respond to comments. #

Total comments: 3

Patch Set 4 : Move SkOSPathUtils into SkOSFile, in their own namespace. #

Patch Set 5 : Remove unnecessary changes. #

Total comments: 6

Patch Set 6 : Respond to comments. #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -50 lines) Patch
M gm/factory.cpp View 1 2 3 4 5 2 chunks +3 lines, -6 lines 0 comments Download
M gm/gm_expectations.h View 1 2 3 4 5 6 1 chunk +0 lines, -10 lines 0 comments Download
M gm/gm_expectations.cpp View 1 2 3 4 5 6 2 chunks +1 line, -10 lines 0 comments Download
M gm/gmmain.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M gm/image.cpp View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M gyp/tests.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkOSFile.h View 1 2 3 4 5 1 chunk +23 lines, -0 lines 0 comments Download
M src/utils/SkOSFile.cpp View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download
A tests/OSPathTest.cpp View 1 2 3 4 5 1 chunk +77 lines, -0 lines 0 comments Download
M tools/skimage_main.cpp View 1 2 3 4 5 6 4 chunks +6 lines, -23 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
scroggo
7 years, 7 months ago (2013-05-22 15:52:13 UTC) #1
scroggo
On 2013/05/22 15:52:13, scroggo wrote: I meant to mention, I decided on SkOSPathUtils instead of ...
7 years, 7 months ago (2013-05-22 16:00:17 UTC) #2
epoger
Generally looks good... thanks for doing this! https://codereview.chromium.org/15747004/diff/1001/gm/image.cpp File gm/image.cpp (left): https://codereview.chromium.org/15747004/diff/1001/gm/image.cpp#oldcode34 gm/image.cpp:34: SkAutoDataUnref data(fileToData("/Users/mike/Downloads/skia.google.jpeg")); ...
7 years, 7 months ago (2013-05-22 17:33:58 UTC) #3
scroggo
Adding Mike. Mike, ok to make this public, or should the header be in src/? ...
7 years, 7 months ago (2013-05-23 15:29:33 UTC) #4
reed1
I think the names are too generic, and need some sort of scoping or prefixing ...
7 years, 7 months ago (2013-05-23 15:44:07 UTC) #5
epoger
Leon- the particular changes in patchset 3 look good to me. Let me know if ...
7 years, 7 months ago (2013-05-23 15:51:12 UTC) #6
scroggo
> I think the names are too generic, and need some sort of > scoping ...
7 years, 7 months ago (2013-05-24 16:23:37 UTC) #7
epoger
LGTM https://codereview.chromium.org/15747004/diff/7001/tools/skimage_main.cpp File tools/skimage_main.cpp (right): https://codereview.chromium.org/15747004/diff/7001/tools/skimage_main.cpp#newcode323 tools/skimage_main.cpp:323: const char* filename = basename.c_str(); On 2013/05/24 16:23:37, ...
7 years, 7 months ago (2013-05-24 16:42:55 UTC) #8
scroggo
https://codereview.chromium.org/15747004/diff/18001/gm/image.cpp File gm/image.cpp (right): https://codereview.chromium.org/15747004/diff/18001/gm/image.cpp#newcode128 gm/image.cpp:128: INHERITED::gResourcePath.c_str(), "CMYK.jpg"); On 2013/05/24 16:42:55, epoger wrote: > On ...
7 years, 7 months ago (2013-05-24 17:36:05 UTC) #9
epoger
LGTM
7 years, 7 months ago (2013-05-24 17:53:17 UTC) #10
scroggo
7 years, 7 months ago (2013-05-24 18:12:28 UTC) #11
Message was sent while issue was closed.
Committed patchset #7 manually as r9277 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698