| 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" | |
| 13 #include "SkImageDecoder.h" | 12 #include "SkImageDecoder.h" |
| 14 #include "SkImageEncoder.h" | 13 #include "SkImageEncoder.h" |
| 15 #include "SkOSFile.h" | 14 #include "SkOSFile.h" |
| 16 #include "SkStream.h" | 15 #include "SkStream.h" |
| 17 #include "SkTDArray.h" | 16 #include "SkTDArray.h" |
| 18 #include "SkTemplates.h" | 17 #include "SkTemplates.h" |
| 19 #include "SkTSearch.h" | 18 #include "SkTSearch.h" |
| 20 #include "SkTypes.h" | 19 #include "SkTypes.h" |
| 21 | 20 |
| 22 __SK_FORCE_IMAGE_DECODER_LINKING; | |
| 23 | |
| 24 /** | 21 /** |
| 25 * skdiff | 22 * skdiff |
| 26 * | 23 * |
| 27 * Given three directory names, expects to find identically-named files in | 24 * Given three directory names, expects to find identically-named files in |
| 28 * each of the first two; the first are treated as a set of baseline, | 25 * each of the first two; the first are treated as a set of baseline, |
| 29 * the second a set of variant images, and a diff image is written into the | 26 * the second a set of variant images, and a diff image is written into the |
| 30 * third directory for each pair. | 27 * third directory for each pair. |
| 31 * Creates an index.html in the current third directory to compare each | 28 * Creates an index.html in the current third directory to compare each |
| 32 * pair that does not match exactly. | 29 * pair that does not match exactly. |
| 33 * Recursively descends directories, unless run with --norecurse. | 30 * Recursively descends directories, unless run with --norecurse. |
| (...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 // range [0...255] are wrapped (mod 256). Do the conversion ourselves, to | 791 // range [0...255] are wrapped (mod 256). Do the conversion ourselves, to |
| 795 // make sure that we only return 0 when there were no failures. | 792 // make sure that we only return 0 when there were no failures. |
| 796 return (num_failing_results > 255) ? 255 : num_failing_results; | 793 return (num_failing_results > 255) ? 255 : num_failing_results; |
| 797 } | 794 } |
| 798 | 795 |
| 799 #if !defined SK_BUILD_FOR_IOS | 796 #if !defined SK_BUILD_FOR_IOS |
| 800 int main(int argc, char * const argv[]) { | 797 int main(int argc, char * const argv[]) { |
| 801 return tool_main(argc, (char**) argv); | 798 return tool_main(argc, (char**) argv); |
| 802 } | 799 } |
| 803 #endif | 800 #endif |
| OLD | NEW |