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

Side by Side Diff: tools/lua/lua_pictures.cpp

Issue 428443002: Cleanup: Rename SkOSPath functions. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/filtermain.cpp ('k') | tools/picture_utils.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "LazyDecodeBitmap.h" 8 #include "LazyDecodeBitmap.h"
9 #include "SkLua.h" 9 #include "SkLua.h"
10 #include "SkLuaCanvas.h" 10 #include "SkLuaCanvas.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 } 125 }
126 126
127 for (int i = 0; i < FLAGS_skpPath.count(); i ++) { 127 for (int i = 0; i < FLAGS_skpPath.count(); i ++) {
128 SkTArray<SkString> paths; 128 SkTArray<SkString> paths;
129 if (sk_isdir(FLAGS_skpPath[i])) { 129 if (sk_isdir(FLAGS_skpPath[i])) {
130 // Add all .skp in this directory. 130 // Add all .skp in this directory.
131 const SkString directory(FLAGS_skpPath[i]); 131 const SkString directory(FLAGS_skpPath[i]);
132 SkString filename; 132 SkString filename;
133 SkOSFile::Iter iter(FLAGS_skpPath[i], "skp"); 133 SkOSFile::Iter iter(FLAGS_skpPath[i], "skp");
134 while(iter.next(&filename)) { 134 while(iter.next(&filename)) {
135 paths.push_back() = SkOSPath::SkPathJoin(directory.c_str(), file name.c_str()); 135 paths.push_back() = SkOSPath::Join(directory.c_str(), filename.c _str());
136 } 136 }
137 } else { 137 } else {
138 // Add this as an .skp itself. 138 // Add this as an .skp itself.
139 paths.push_back() = FLAGS_skpPath[i]; 139 paths.push_back() = FLAGS_skpPath[i];
140 } 140 }
141 141
142 for (int i = 0; i < paths.count(); i++) { 142 for (int i = 0; i < paths.count(); i++) {
143 if (moduloRemainder >= 0) { 143 if (moduloRemainder >= 0) {
144 if ((i % moduloDivisor) != moduloRemainder) { 144 if ((i % moduloDivisor) != moduloRemainder) {
145 continue; 145 continue;
(...skipping 21 matching lines...) Expand all
167 } 167 }
168 } 168 }
169 return 0; 169 return 0;
170 } 170 }
171 171
172 #if !defined SK_BUILD_FOR_IOS 172 #if !defined SK_BUILD_FOR_IOS
173 int main(int argc, char * const argv[]) { 173 int main(int argc, char * const argv[]) {
174 return tool_main(argc, (char**) argv); 174 return tool_main(argc, (char**) argv);
175 } 175 }
176 #endif 176 #endif
OLDNEW
« no previous file with comments | « tools/filtermain.cpp ('k') | tools/picture_utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698