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

Side by Side Diff: tools/skdiff_main.cpp

Issue 1313203003: Remove include of stdlib.h from SkTypes.h. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up qsort conversion. Created 5 years, 3 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 | « tools/render_pictures_main.cpp ('k') | tools/skpdiff/SkDifferentPixelsMetric_cpu.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 "SkTSearch.h" 18 #include "SkTSearch.h"
19 19
20 #include <stdlib.h>
21
20 __SK_FORCE_IMAGE_DECODER_LINKING; 22 __SK_FORCE_IMAGE_DECODER_LINKING;
21 23
22 /** 24 /**
23 * skdiff 25 * skdiff
24 * 26 *
25 * Given three directory names, expects to find identically-named files in 27 * Given three directory names, expects to find identically-named files in
26 * 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,
27 * 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
28 * third directory for each pair. 30 * third directory for each pair.
29 * 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
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 // 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
850 // 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.
851 return (num_failing_results > 255) ? 255 : num_failing_results; 853 return (num_failing_results > 255) ? 255 : num_failing_results;
852 } 854 }
853 855
854 #if !defined SK_BUILD_FOR_IOS 856 #if !defined SK_BUILD_FOR_IOS
855 int main(int argc, char * const argv[]) { 857 int main(int argc, char * const argv[]) {
856 return tool_main(argc, (char**) argv); 858 return tool_main(argc, (char**) argv);
857 } 859 }
858 #endif 860 #endif
OLDNEW
« no previous file with comments | « tools/render_pictures_main.cpp ('k') | tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698