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

Side by Side Diff: tools/skdiff_main.cpp

Issue 1272293004: Move SkTemplates.h to private. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: It's a struct! Created 5 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
« no previous file with comments | « src/utils/win/SkDWrite.h ('k') | tools/skdiff_utils.cpp » ('j') | 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 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 "SkTDArray.h"
18 #include "SkTemplates.h"
19 #include "SkTSearch.h" 18 #include "SkTSearch.h"
20 19
21 __SK_FORCE_IMAGE_DECODER_LINKING; 20 __SK_FORCE_IMAGE_DECODER_LINKING;
22 21
23 /** 22 /**
24 * skdiff 23 * skdiff
25 * 24 *
26 * Given three directory names, expects to find identically-named files in 25 * Given three directory names, expects to find identically-named files in
27 * each of the first two; the first are treated as a set of baseline, 26 * each of the first two; the first are treated as a set of baseline,
28 * the second a set of variant images, and a diff image is written into the 27 * the second a set of variant images, and a diff image is written into the
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 // range [0...255] are wrapped (mod 256). Do the conversion ourselves, to 849 // range [0...255] are wrapped (mod 256). Do the conversion ourselves, to
851 // make sure that we only return 0 when there were no failures. 850 // make sure that we only return 0 when there were no failures.
852 return (num_failing_results > 255) ? 255 : num_failing_results; 851 return (num_failing_results > 255) ? 255 : num_failing_results;
853 } 852 }
854 853
855 #if !defined SK_BUILD_FOR_IOS 854 #if !defined SK_BUILD_FOR_IOS
856 int main(int argc, char * const argv[]) { 855 int main(int argc, char * const argv[]) {
857 return tool_main(argc, (char**) argv); 856 return tool_main(argc, (char**) argv);
858 } 857 }
859 #endif 858 #endif
OLDNEW
« no previous file with comments | « src/utils/win/SkDWrite.h ('k') | tools/skdiff_utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698