| 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 "SkPictureRecord.h" |
| 16 #include "SkPictureRecorder.h" | 17 #include "SkPictureRecorder.h" |
| 17 #include "SkStream.h" | 18 #include "SkStream.h" |
| 18 #include "picture_utils.h" | 19 #include "picture_utils.h" |
| 19 | 20 |
| 20 __SK_FORCE_IMAGE_DECODER_LINKING; | 21 __SK_FORCE_IMAGE_DECODER_LINKING; |
| 21 | 22 |
| 22 static void usage() { | 23 static void usage() { |
| 23 SkDebugf("Usage: filter -i inFile [-o outFile] [--input-dir path] [--output-
dir path]\n"); | 24 SkDebugf("Usage: filter -i inFile [-o outFile] [--input-dir path] [--output-
dir path]\n"); |
| 24 SkDebugf(" [-h|--help]\n\n"); | 25 SkDebugf(" [-h|--help]\n\n"); |
| 25 SkDebugf(" -i inFile : file to filter.\n"); | 26 SkDebugf(" -i inFile : file to filter.\n"); |
| (...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 | 800 |
| 800 SkGraphics::Term(); | 801 SkGraphics::Term(); |
| 801 return 0; | 802 return 0; |
| 802 } | 803 } |
| 803 | 804 |
| 804 #if !defined SK_BUILD_FOR_IOS | 805 #if !defined SK_BUILD_FOR_IOS |
| 805 int main(int argc, char * const argv[]) { | 806 int main(int argc, char * const argv[]) { |
| 806 return tool_main(argc, (char**) argv); | 807 return tool_main(argc, (char**) argv); |
| 807 } | 808 } |
| 808 #endif | 809 #endif |
| OLD | NEW |