diff options
author | Ben Wagner <bungeman@google.com> | 2016-11-07 18:05:29 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-11-08 20:20:15 +0000 |
commit | bf111d7bc9ba3857433e30eae27f0272c34ed0fb (patch) | |
tree | 878660f011e2513791d588b621bc16fa047484da /tools/skdiff | |
parent | fa2c4788ce04f80ff7a5887613d93a4053cd174b (diff) |
Move SkOSPath out of include/core.
It is moved to src/utils. It is almost a tool, but has two uses in
src/ports.
The existing SkOSFile.cpp is left empty for the time being since it is
mentioned in Chromium's BUILD.gn for Skia.
Change-Id: I3bb7f7c4214359eb6ab906bfe76737d20bf1d6c7
Reviewed-on: https://skia-review.googlesource.com/4536
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'tools/skdiff')
-rw-r--r-- | tools/skdiff/skdiff_main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/skdiff/skdiff_main.cpp b/tools/skdiff/skdiff_main.cpp index c51cd28d78..b4e560729c 100644 --- a/tools/skdiff/skdiff_main.cpp +++ b/tools/skdiff/skdiff_main.cpp @@ -12,6 +12,7 @@ #include "SkForceLinking.h" #include "SkImageEncoder.h" #include "SkOSFile.h" +#include "SkOSPath.h" #include "SkStream.h" #include "../private/SkTDArray.h" #include "../private/SkTSearch.h" @@ -40,7 +41,7 @@ typedef StringArray FileArray; static void add_unique_basename(StringArray* array, const SkString& filename) { // trim off dirs const char* src = filename.c_str(); - const char* trimmed = strrchr(src, SkPATH_SEPARATOR); + const char* trimmed = strrchr(src, SkOSPath::SEPARATOR); if (trimmed) { trimmed += 1; // skip the separator } else { |