| 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 "SkBitmap.h" | 8 #include "SkBitmap.h" |
| 9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
| 10 #include "SkGraphics.h" | 10 #include "SkGraphics.h" |
| 11 #include "SkOSFile.h" | 11 #include "SkOSFile.h" |
| 12 #include "SkImageDecoder.h" | |
| 13 #include "SkPicture.h" | 12 #include "SkPicture.h" |
| 14 #include "SkStream.h" | 13 #include "SkStream.h" |
| 15 #include "SkString.h" | 14 #include "SkString.h" |
| 16 #include "SkDumpCanvas.h" | 15 #include "SkDumpCanvas.h" |
| 17 | 16 |
| 18 static SkPicture* inspect(const char path[]) { | 17 static SkPicture* inspect(const char path[]) { |
| 19 SkFILEStream stream(path); | 18 SkFILEStream stream(path); |
| 20 if (!stream.isValid()) { | 19 if (!stream.isValid()) { |
| 21 printf("-- Can't open '%s'\n", path); | 20 printf("-- Can't open '%s'\n", path); |
| 22 return nullptr; | 21 return nullptr; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 } | 80 } |
| 82 } | 81 } |
| 83 return 0; | 82 return 0; |
| 84 } | 83 } |
| 85 | 84 |
| 86 #if !defined SK_BUILD_FOR_IOS | 85 #if !defined SK_BUILD_FOR_IOS |
| 87 int main(int argc, char * const argv[]) { | 86 int main(int argc, char * const argv[]) { |
| 88 return tool_main(argc, (char**) argv); | 87 return tool_main(argc, (char**) argv); |
| 89 } | 88 } |
| 90 #endif | 89 #endif |
| OLD | NEW |