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 "SkForceLinking.h" |
13 #include "SkImageDecoder.h" | 13 #include "SkImageDecoder.h" |
14 #include "SkImageEncoder.h" | 14 #include "SkImageEncoder.h" |
15 #include "SkOSFile.h" | 15 #include "SkOSFile.h" |
16 #include "SkStream.h" | 16 #include "SkStream.h" |
17 #include "SkTDArray.h" | 17 #include "../private/SkTDArray.h" |
18 #include "../private/SkTSearch.h" | 18 #include "../private/SkTSearch.h" |
19 | 19 |
20 #include <stdlib.h> | 20 #include <stdlib.h> |
21 | 21 |
22 __SK_FORCE_IMAGE_DECODER_LINKING; | 22 __SK_FORCE_IMAGE_DECODER_LINKING; |
23 | 23 |
24 /** | 24 /** |
25 * skdiff | 25 * skdiff |
26 * | 26 * |
27 * Given three directory names, expects to find identically-named files in | 27 * Given three directory names, expects to find identically-named files in |
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 // range [0...255] are wrapped (mod 256). Do the conversion ourselves, to | 851 // range [0...255] are wrapped (mod 256). Do the conversion ourselves, to |
852 // make sure that we only return 0 when there were no failures. | 852 // make sure that we only return 0 when there were no failures. |
853 return (num_failing_results > 255) ? 255 : num_failing_results; | 853 return (num_failing_results > 255) ? 255 : num_failing_results; |
854 } | 854 } |
855 | 855 |
856 #if !defined SK_BUILD_FOR_IOS | 856 #if !defined SK_BUILD_FOR_IOS |
857 int main(int argc, char * const argv[]) { | 857 int main(int argc, char * const argv[]) { |
858 return tool_main(argc, (char**) argv); | 858 return tool_main(argc, (char**) argv); |
859 } | 859 } |
860 #endif | 860 #endif |
OLD | NEW |