| 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 "SkForceLinking.h" |
| 11 #include "SkGraphics.h" | 11 #include "SkGraphics.h" |
| 12 #include "SkImageDecoder.h" | 12 #include "SkImageDecoder.h" |
| 13 #include "SkImageEncoder.h" | 13 #include "SkImageEncoder.h" |
| 14 #include "SkOSFile.h" | 14 #include "SkOSFile.h" |
| 15 #include "SkPicture.h" | 15 #include "SkPicture.h" |
| 16 #include "SkPicturePlayback.h" | 16 #include "SkPicturePlayback.h" |
| 17 #include "SkPictureRecord.h" | 17 #include "SkPictureRecord.h" |
| 18 #include "SkPictureRecorder.h" | 18 #include "SkPictureRecorder.h" |
| 19 #include "SkStream.h" | 19 #include "SkStream.h" |
| 20 #include "picture_utils.h" | 20 #include "picture_utils.h" |
| 21 #include "path_utils.h" | |
| 22 | 21 |
| 23 __SK_FORCE_IMAGE_DECODER_LINKING; | 22 __SK_FORCE_IMAGE_DECODER_LINKING; |
| 24 | 23 |
| 25 static void usage() { | 24 static void usage() { |
| 26 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"); |
| 27 SkDebugf(" [-h|--help]\n\n"); | 26 SkDebugf(" [-h|--help]\n\n"); |
| 28 SkDebugf(" -i inFile : file to filter.\n"); | 27 SkDebugf(" -i inFile : file to filter.\n"); |
| 29 SkDebugf(" -o outFile : result of filtering.\n"); | 28 SkDebugf(" -o outFile : result of filtering.\n"); |
| 30 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"
); |
| 31 SkDebugf(" --output-dir : results of filtering the input dir.\n"); | 30 SkDebugf(" --output-dir : results of filtering the input dir.\n"); |
| (...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 839 | 838 |
| 840 SkGraphics::Term(); | 839 SkGraphics::Term(); |
| 841 return 0; | 840 return 0; |
| 842 } | 841 } |
| 843 | 842 |
| 844 #if !defined SK_BUILD_FOR_IOS | 843 #if !defined SK_BUILD_FOR_IOS |
| 845 int main(int argc, char * const argv[]) { | 844 int main(int argc, char * const argv[]) { |
| 846 return tool_main(argc, (char**) argv); | 845 return tool_main(argc, (char**) argv); |
| 847 } | 846 } |
| 848 #endif | 847 #endif |
| OLD | NEW |