| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 "SkCommandLineFlags.h" | 8 #include "SkCommandLineFlags.h" |
| 9 #include "SkPicture.h" | 9 #include "SkPicture.h" |
| 10 #include "SkPictureData.h" | 10 #include "SkPictureData.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 if (FLAGS_version && !FLAGS_quiet) { | 59 if (FLAGS_version && !FLAGS_quiet) { |
| 60 SkDebugf("Version: %d\n", info.fVersion); | 60 SkDebugf("Version: %d\n", info.fVersion); |
| 61 } | 61 } |
| 62 if (FLAGS_cullRect && !FLAGS_quiet) { | 62 if (FLAGS_cullRect && !FLAGS_quiet) { |
| 63 SkDebugf("Cull Rect: %f,%f,%f,%f\n", | 63 SkDebugf("Cull Rect: %f,%f,%f,%f\n", |
| 64 info.fCullRect.fLeft, info.fCullRect.fTop, | 64 info.fCullRect.fLeft, info.fCullRect.fTop, |
| 65 info.fCullRect.fRight, info.fCullRect.fBottom); | 65 info.fCullRect.fRight, info.fCullRect.fBottom); |
| 66 } | 66 } |
| 67 if (FLAGS_flags && !FLAGS_quiet) { | 67 if (FLAGS_flags && !FLAGS_quiet) { |
| 68 SkDebugf("Flags: 0x%x\n", info.fFlags); | 68 SkDebugf("Flags: "); |
| 69 bool needsSeparator = false; |
| 70 if (info.fFlags & SkPictInfo::kCrossProcess_Flag) { |
| 71 SkDebugf("kCrossProcess"); |
| 72 needsSeparator = true; |
| 73 } |
| 74 if (info.fFlags & SkPictInfo::kScalarIsFloat_Flag) { |
| 75 if (needsSeparator) { |
| 76 SkDebugf("|"); |
| 77 } |
| 78 SkDebugf("kScalarIsFloat"); |
| 79 needsSeparator = true; |
| 80 } |
| 81 if (info.fFlags & SkPictInfo::kPtrIs64Bit_Flag) { |
| 82 if (needsSeparator) { |
| 83 SkDebugf("|"); |
| 84 } |
| 85 SkDebugf("kPtrIs64Bit"); |
| 86 } |
| 87 SkDebugf("\n"); |
| 69 } | 88 } |
| 70 | 89 |
| 71 if (!stream.readBool()) { | 90 if (!stream.readBool()) { |
| 72 // If we read true there's a picture playback object flattened | 91 // If we read true there's a picture playback object flattened |
| 73 // in the file; if false, there isn't a playback, so we're done | 92 // in the file; if false, there isn't a playback, so we're done |
| 74 // reading the file. | 93 // reading the file. |
| 75 return kSuccess; | 94 return kSuccess; |
| 76 } | 95 } |
| 77 | 96 |
| 78 for (;;) { | 97 for (;;) { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 } | 175 } |
| 157 | 176 |
| 158 return kSuccess; | 177 return kSuccess; |
| 159 } | 178 } |
| 160 | 179 |
| 161 #if !defined SK_BUILD_FOR_IOS | 180 #if !defined SK_BUILD_FOR_IOS |
| 162 int main(int argc, char * const argv[]) { | 181 int main(int argc, char * const argv[]) { |
| 163 return tool_main(argc, (char**) argv); | 182 return tool_main(argc, (char**) argv); |
| 164 } | 183 } |
| 165 #endif | 184 #endif |
| OLD | NEW |