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

Side by Side Diff: experimental/PdfViewer/chop_transparency_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 | « dm/DM.cpp ('k') | experimental/PdfViewer/src/SkPdfRenderer.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 2013 Google Inc. 2 * Copyright 2013 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 7
8 #include "SkBitmap.h" 8 #include "SkBitmap.h"
9 #include "SkColorPriv.h" 9 #include "SkColorPriv.h"
10 #include "SkCommandLineFlags.h" 10 #include "SkCommandLineFlags.h"
11 #include "SkData.h" 11 #include "SkData.h"
12 #include "SkForceLinking.h"
13 #include "SkGraphics.h" 12 #include "SkGraphics.h"
14 #include "SkImageDecoder.h" 13 #include "SkImageDecoder.h"
15 #include "SkImageEncoder.h" 14 #include "SkImageEncoder.h"
16 #include "SkOSFile.h" 15 #include "SkOSFile.h"
17 #include "SkRandom.h" 16 #include "SkRandom.h"
18 #include "SkStream.h" 17 #include "SkStream.h"
19 #include "SkTArray.h" 18 #include "SkTArray.h"
20 #include "SkTemplates.h" 19 #include "SkTemplates.h"
21 20
22 __SK_FORCE_IMAGE_DECODER_LINKING;
23
24 DEFINE_string2(readPath, r, "", "Folder(s) and files to decode images. Required. "); 21 DEFINE_string2(readPath, r, "", "Folder(s) and files to decode images. Required. ");
25 22
26 struct Format { 23 struct Format {
27 SkImageEncoder::Type fType; 24 SkImageEncoder::Type fType;
28 SkImageDecoder::Format fFormat; 25 SkImageDecoder::Format fFormat;
29 const char* fSuffix; 26 const char* fSuffix;
30 }; 27 };
31 28
32 /* 29 /*
33 static const Format gFormats[] = { 30 static const Format gFormats[] = {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 } 163 }
167 164
168 return 0; 165 return 0;
169 } 166 }
170 167
171 #if !defined SK_BUILD_FOR_IOS 168 #if !defined SK_BUILD_FOR_IOS
172 int main(int argc, char * const argv[]) { 169 int main(int argc, char * const argv[]) {
173 return tool_main(argc, (char**) argv); 170 return tool_main(argc, (char**) argv);
174 } 171 }
175 #endif 172 #endif
OLDNEW
« no previous file with comments | « dm/DM.cpp ('k') | experimental/PdfViewer/src/SkPdfRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698