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

Side by Side Diff: tools/skdiff_main.cpp

Issue 670453002: Remove image decoder and encoder autoregistration (Closed) Base URL: https://skia.googlesource.com/skia.git@separate-image-decoder-01-skpicture
Patch Set: Created 6 years, 1 month 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_pdfs_main.cpp ('k') | tools/skhello.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"
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
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
OLDNEW
« no previous file with comments | « tools/render_pdfs_main.cpp ('k') | tools/skhello.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698