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

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

Issue 20054003: skpdiff: remove default value for output. Diifs can be very big, and fill a hard drive, no sense to… (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 #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 19 matching lines...) Expand all
30 #include "skpdiff_util.h" 30 #include "skpdiff_util.h"
31 31
32 #include "SkForceLinking.h" 32 #include "SkForceLinking.h"
33 __SK_FORCE_IMAGE_DECODER_LINKING; 33 __SK_FORCE_IMAGE_DECODER_LINKING;
34 34
35 // Command line argument definitions go here 35 // Command line argument definitions go here
36 DEFINE_bool2(list, l, false, "List out available differs"); 36 DEFINE_bool2(list, l, false, "List out available differs");
37 DEFINE_string2(differs, d, "", "The names of the differs to use or all of them b y default"); 37 DEFINE_string2(differs, d, "", "The names of the differs to use or all of them b y default");
38 DEFINE_string2(folders, f, "", "Compare two folders with identical subfile names : <baseline folder> <test folder>"); 38 DEFINE_string2(folders, f, "", "Compare two folders with identical subfile names : <baseline folder> <test folder>");
39 DEFINE_string2(patterns, p, "", "Use two patterns to compare images: <baseline> <test>"); 39 DEFINE_string2(patterns, p, "", "Use two patterns to compare images: <baseline> <test>");
40 DEFINE_string2(output, o, "skpdiff_output.json", "Writes the output of these dif fs to output: <output>"); 40 DEFINE_string2(output, o, "", "Writes the output of these diffs to output: <outp ut>");
41 DEFINE_bool(jsonp, true, "Output JSON with padding"); 41 DEFINE_bool(jsonp, true, "Output JSON with padding");
42 DEFINE_string(csv, "", "Writes the output of these diffs to a csv file"); 42 DEFINE_string(csv, "", "Writes the output of these diffs to a csv file");
43 43
44 #if SK_SUPPORT_OPENCL 44 #if SK_SUPPORT_OPENCL
45 /// A callback for any OpenCL errors 45 /// A callback for any OpenCL errors
46 static void CL_CALLBACK error_notify(const char* errorInfo, const void* privateI nfoSize, ::size_t cb, void* userData) { 46 static void CL_CALLBACK error_notify(const char* errorInfo, const void* privateI nfoSize, ::size_t cb, void* userData) {
47 SkDebugf("OpenCL error notify: %s\n", errorInfo); 47 SkDebugf("OpenCL error notify: %s\n", errorInfo);
48 exit(1); 48 exit(1);
49 } 49 }
50 50
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 } 210 }
211 211
212 return 0; 212 return 0;
213 } 213 }
214 214
215 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 215 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
216 int main(int argc, char * argv[]) { 216 int main(int argc, char * argv[]) {
217 return tool_main(argc, (char**) argv); 217 return tool_main(argc, (char**) argv);
218 } 218 }
219 #endif 219 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698