OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 "SkDebugCanvas.h" | 8 #include "SkDebugCanvas.h" |
9 #include "SkDevice.h" | 9 #include "SkDevice.h" |
| 10 #include "SkForceLinking.h" |
10 #include "SkGraphics.h" | 11 #include "SkGraphics.h" |
11 #include "SkImageDecoder.h" | 12 #include "SkImageDecoder.h" |
12 #include "SkImageEncoder.h" | 13 #include "SkImageEncoder.h" |
13 #include "SkOSFile.h" | 14 #include "SkOSFile.h" |
14 #include "SkPicture.h" | 15 #include "SkPicture.h" |
15 #include "SkPicturePlayback.h" | 16 #include "SkPicturePlayback.h" |
16 #include "SkPictureRecord.h" | 17 #include "SkPictureRecord.h" |
17 #include "SkStream.h" | 18 #include "SkStream.h" |
18 #include "picture_utils.h" | 19 #include "picture_utils.h" |
19 #include "path_utils.h" | 20 #include "path_utils.h" |
20 | 21 |
| 22 __SK_FORCE_IMAGE_DECODER_LINKING; |
| 23 |
21 static void usage() { | 24 static void usage() { |
22 SkDebugf("Usage: filter -i inFile [-o outFile] [--input-dir path] [--output-
dir path]\n"); | 25 SkDebugf("Usage: filter -i inFile [-o outFile] [--input-dir path] [--output-
dir path]\n"); |
23 SkDebugf(" [-h|--help]\n\n"); | 26 SkDebugf(" [-h|--help]\n\n"); |
24 SkDebugf(" -i inFile : file to filter.\n"); | 27 SkDebugf(" -i inFile : file to filter.\n"); |
25 SkDebugf(" -o outFile : result of filtering.\n"); | 28 SkDebugf(" -o outFile : result of filtering.\n"); |
26 SkDebugf(" --input-dir : process all files in dir with .skp extension.\n"
); | 29 SkDebugf(" --input-dir : process all files in dir with .skp extension.\n"
); |
27 SkDebugf(" --output-dir : results of filtering the input dir.\n"); | 30 SkDebugf(" --output-dir : results of filtering the input dir.\n"); |
28 SkDebugf(" -h|--help : Show this help message.\n"); | 31 SkDebugf(" -h|--help : Show this help message.\n"); |
29 } | 32 } |
30 | 33 |
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 | 806 |
804 SkGraphics::Term(); | 807 SkGraphics::Term(); |
805 return 0; | 808 return 0; |
806 } | 809 } |
807 | 810 |
808 #if !defined SK_BUILD_FOR_IOS | 811 #if !defined SK_BUILD_FOR_IOS |
809 int main(int argc, char * const argv[]) { | 812 int main(int argc, char * const argv[]) { |
810 return tool_main(argc, (char**) argv); | 813 return tool_main(argc, (char**) argv); |
811 } | 814 } |
812 #endif | 815 #endif |
OLD | NEW |