OLD | NEW |
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 // TODO(djsollen): Rename this whole package (perhaps to "SkMultiDiffer"). | 8 // TODO(djsollen): Rename this whole package (perhaps to "SkMultiDiffer"). |
9 // It's not just for "pdiff" (perceptual diffs)--it's a harness that allows | 9 // It's not just for "pdiff" (perceptual diffs)--it's a harness that allows |
10 // the execution of an arbitrary set of difference algorithms. | 10 // the execution of an arbitrary set of difference algorithms. |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "SkStream.h" | 28 #include "SkStream.h" |
29 #include "SkTDArray.h" | 29 #include "SkTDArray.h" |
30 #include "SkTaskGroup.h" | 30 #include "SkTaskGroup.h" |
31 | 31 |
32 #include "SkDifferentPixelsMetric.h" | 32 #include "SkDifferentPixelsMetric.h" |
33 #include "SkDiffContext.h" | 33 #include "SkDiffContext.h" |
34 #include "SkImageDiffer.h" | 34 #include "SkImageDiffer.h" |
35 #include "SkPMetric.h" | 35 #include "SkPMetric.h" |
36 #include "skpdiff_util.h" | 36 #include "skpdiff_util.h" |
37 | 37 |
38 #include "SkForceLinking.h" | |
39 __SK_FORCE_IMAGE_DECODER_LINKING; | |
40 | |
41 // Command line argument definitions go here | 38 // Command line argument definitions go here |
42 DEFINE_bool2(list, l, false, "List out available differs"); | 39 DEFINE_bool2(list, l, false, "List out available differs"); |
43 DEFINE_string2(differs, d, "", "The names of the differs to use or all of them b
y default"); | 40 DEFINE_string2(differs, d, "", "The names of the differs to use or all of them b
y default"); |
44 DEFINE_string2(folders, f, "", "Compare two folders with identical subfile names
: <baseline folder> <test folder>"); | 41 DEFINE_string2(folders, f, "", "Compare two folders with identical subfile names
: <baseline folder> <test folder>"); |
45 DEFINE_string2(patterns, p, "", "Use two patterns to compare images: <baseline>
<test>"); | 42 DEFINE_string2(patterns, p, "", "Use two patterns to compare images: <baseline>
<test>"); |
46 DEFINE_string2(output, o, "", "Writes a JSON summary of these diffs to file: <fi
lepath>"); | 43 DEFINE_string2(output, o, "", "Writes a JSON summary of these diffs to file: <fi
lepath>"); |
47 DEFINE_string(alphaDir, "", "If the differ can generate an alpha mask, write it
into directory: <dirpath>"); | 44 DEFINE_string(alphaDir, "", "If the differ can generate an alpha mask, write it
into directory: <dirpath>"); |
48 DEFINE_string(rgbDiffDir, "", "If the differ can generate an image showing the R
GB diff at each pixel, write it into directory: <dirpath>"); | 45 DEFINE_string(rgbDiffDir, "", "If the differ can generate an image showing the R
GB diff at each pixel, write it into directory: <dirpath>"); |
49 DEFINE_string(whiteDiffDir, "", "If the differ can generate an image showing eve
ry changed pixel in white, write it into directory: <dirpath>"); | 46 DEFINE_string(whiteDiffDir, "", "If the differ can generate an image showing eve
ry changed pixel in white, write it into directory: <dirpath>"); |
50 DEFINE_bool(jsonp, true, "Output JSON with padding"); | 47 DEFINE_bool(jsonp, true, "Output JSON with padding"); |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 } | 254 } |
258 | 255 |
259 return 0; | 256 return 0; |
260 } | 257 } |
261 | 258 |
262 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 259 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
263 int main(int argc, char * argv[]) { | 260 int main(int argc, char * argv[]) { |
264 return tool_main(argc, (char**) argv); | 261 return tool_main(argc, (char**) argv); |
265 } | 262 } |
266 #endif | 263 #endif |
OLD | NEW |