OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 #include "skdiff.h" | 7 #include "skdiff.h" |
8 #include "skdiff_html.h" | 8 #include "skdiff_html.h" |
9 #include "skdiff_utils.h" | 9 #include "skdiff_utils.h" |
10 #include "SkBitmap.h" | 10 #include "SkBitmap.h" |
11 #include "SkData.h" | 11 #include "SkData.h" |
| 12 #include "SkForceLinking.h" |
12 #include "SkImageDecoder.h" | 13 #include "SkImageDecoder.h" |
13 #include "SkImageEncoder.h" | 14 #include "SkImageEncoder.h" |
14 #include "SkOSFile.h" | 15 #include "SkOSFile.h" |
15 #include "SkStream.h" | 16 #include "SkStream.h" |
16 #include "SkTDArray.h" | 17 #include "SkTDArray.h" |
17 #include "SkTemplates.h" | 18 #include "SkTemplates.h" |
18 #include "SkTSearch.h" | 19 #include "SkTSearch.h" |
19 #include "SkTypes.h" | 20 #include "SkTypes.h" |
20 | 21 |
| 22 __SK_FORCE_IMAGE_DECODER_LINKING; |
| 23 |
21 /** | 24 /** |
22 * skdiff | 25 * skdiff |
23 * | 26 * |
24 * Given three directory names, expects to find identically-named files in | 27 * Given three directory names, expects to find identically-named files in |
25 * each of the first two; the first are treated as a set of baseline, | 28 * each of the first two; the first are treated as a set of baseline, |
26 * the second a set of variant images, and a diff image is written into the | 29 * the second a set of variant images, and a diff image is written into the |
27 * third directory for each pair. | 30 * third directory for each pair. |
28 * Creates an index.html in the current third directory to compare each | 31 * Creates an index.html in the current third directory to compare each |
29 * pair that does not match exactly. | 32 * pair that does not match exactly. |
30 * Recursively descends directories, unless run with --norecurse. | 33 * Recursively descends directories, unless run with --norecurse. |
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 // range [0...255] are wrapped (mod 256). Do the conversion ourselves, to | 767 // range [0...255] are wrapped (mod 256). Do the conversion ourselves, to |
765 // make sure that we only return 0 when there were no failures. | 768 // make sure that we only return 0 when there were no failures. |
766 return (num_failing_results > 255) ? 255 : num_failing_results; | 769 return (num_failing_results > 255) ? 255 : num_failing_results; |
767 } | 770 } |
768 | 771 |
769 #if !defined SK_BUILD_FOR_IOS | 772 #if !defined SK_BUILD_FOR_IOS |
770 int main(int argc, char * const argv[]) { | 773 int main(int argc, char * const argv[]) { |
771 return tool_main(argc, (char**) argv); | 774 return tool_main(argc, (char**) argv); |
772 } | 775 } |
773 #endif | 776 #endif |
OLD | NEW |