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

Side by Side Diff: tools/skpdiff/skpdiff_main.cpp

Issue 29103005: update skpdiff visualization (image magnification with alpha mask) (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
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 #if SK_SUPPORT_OPENCL 8 #if SK_SUPPORT_OPENCL
9 9
10 #define __NO_STD_VECTOR // Uses cl::vectpr instead of std::vectpr 10 #define __NO_STD_VECTOR // Uses cl::vectpr instead of std::vectpr
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 if (!FLAGS_csv.isEmpty()) { 182 if (!FLAGS_csv.isEmpty()) {
183 if (1 != FLAGS_csv.count()) { 183 if (1 != FLAGS_csv.count()) {
184 SkDebugf("csv flag expects one argument: <csv file>\n"); 184 SkDebugf("csv flag expects one argument: <csv file>\n");
185 return 1; 185 return 1;
186 } 186 }
187 } 187 }
188 188
189 SkDiffContext ctx; 189 SkDiffContext ctx;
190 ctx.setDiffers(chosenDiffers); 190 ctx.setDiffers(chosenDiffers);
191 191
192 ctx.setDifferenceDir(SkString("pdiff_alpha"));
193
192 if (FLAGS_threads >= 0) { 194 if (FLAGS_threads >= 0) {
193 ctx.setThreadCount(FLAGS_threads); 195 ctx.setThreadCount(FLAGS_threads);
194 } 196 }
195 197
196 // Perform a folder diff if one is requested 198 // Perform a folder diff if one is requested
197 if (!FLAGS_folders.isEmpty()) { 199 if (!FLAGS_folders.isEmpty()) {
198 ctx.diffDirectories(FLAGS_folders[0], FLAGS_folders[1]); 200 ctx.diffDirectories(FLAGS_folders[0], FLAGS_folders[1]);
199 } 201 }
200 202
201 // Perform a pattern diff if one is requested 203 // Perform a pattern diff if one is requested
(...skipping 13 matching lines...) Expand all
215 } 217 }
216 218
217 return 0; 219 return 0;
218 } 220 }
219 221
220 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 222 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
221 int main(int argc, char * argv[]) { 223 int main(int argc, char * argv[]) {
222 return tool_main(argc, (char**) argv); 224 return tool_main(argc, (char**) argv);
223 } 225 }
224 #endif 226 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698