diff options
author | tfarina <tfarina@chromium.org> | 2014-07-28 19:26:58 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-07-28 19:26:58 -0700 |
commit | a8e2e1504b9af6ba791637f228debaa23953064a (patch) | |
tree | c4dc50d10bb27a4bfd263f877cb7d602f6779afc /tools/picture_utils.cpp | |
parent | 2bff230d835fbc84f0ce8b2e7a399fe8416ec7c8 (diff) |
Cleanup: Rename SkOSPath functions.
Mostly for brevity and matches better with Python:
Python | Old C++ | New C++
os.path.join | SkOSPath::SkPathJoin | SkOSPath::Join
os.path.basename | SkOSPath::SkBasename | SkOSPath::Basename
BUG=None
TEST=make all
R=mtklein@google.com, bsalomon@google.com
Author: tfarina@chromium.org
Review URL: https://codereview.chromium.org/428443002
Diffstat (limited to 'tools/picture_utils.cpp')
-rw-r--r-- | tools/picture_utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/picture_utils.cpp b/tools/picture_utils.cpp index 597fd4878f..6a35dd1d70 100644 --- a/tools/picture_utils.cpp +++ b/tools/picture_utils.cpp @@ -55,12 +55,12 @@ namespace sk_tools { const char *subdirOrNull, const SkString& baseName) { SkString partialPath; if (subdirOrNull) { - partialPath = SkOSPath::SkPathJoin(dirPath.c_str(), subdirOrNull); + partialPath = SkOSPath::Join(dirPath.c_str(), subdirOrNull); sk_mkdir(partialPath.c_str()); } else { partialPath.set(dirPath); } - SkString fullPath = SkOSPath::SkPathJoin(partialPath.c_str(), baseName.c_str()); + SkString fullPath = SkOSPath::Join(partialPath.c_str(), baseName.c_str()); if (SkImageEncoder::EncodeFile(fullPath.c_str(), bm, SkImageEncoder::kPNG_Type, 100)) { return true; } else { |