38 if (FLAGS_input.size() != 1) {
53 size_t totStreamSize =
stream.getLength();
61 if (FLAGS_version && !FLAGS_quiet) {
64 if (FLAGS_cullRect && !FLAGS_quiet) {
66 info.fCullRect.fLeft,
info.fCullRect.fTop,
67 info.fCullRect.fRight,
info.fCullRect.fBottom);
88 size_t curPos =
stream.getPosition();
92 if (curPos+chunkSize > totStreamSize) {
105 if (FLAGS_tags && !FLAGS_quiet) {
106 SkDebugf(
"SK_PICT_READER_TAG %u\n", chunkSize);
110 if (FLAGS_tags && !FLAGS_quiet) {
111 SkDebugf(
"SK_PICT_FACTORY_TAG %u\n", chunkSize);
115 if (FLAGS_tags && !FLAGS_quiet) {
116 SkDebugf(
"SK_PICT_TYPEFACE_TAG %u\n", chunkSize);
124 SkDebugf(
"File corruption in SkFontDescriptor\n");
135 if (FLAGS_tags && !FLAGS_quiet) {
136 SkDebugf(
"SK_PICT_PICTURE_TAG %u\n", chunkSize);
137 SkDebugf(
"Exiting early due to format limitations\n");
141 if (FLAGS_tags && !FLAGS_quiet) {
142 SkDebugf(
"SK_PICT_BUFFER_SIZE_TAG %u\n", chunkSize);
147 SkDebugf(
"Unknown tag %u\n", chunkSize);
152 if (!
stream.move(chunkSize)) {
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
#define SK_PICT_PICTURE_TAG
#define SK_PICT_FACTORY_TAG
#define SK_PICT_BUFFER_SIZE_TAG
#define SK_PICT_READER_TAG
#define SK_PICT_TYPEFACE_TAG
bool SkPicture_StreamIsSKP(SkStream *stream, SkPictInfo *pInfo)
constexpr int SkToInt(S x)
static void Parse(int argc, const char *const *argv)
static void SetUsage(const char *usage)
static bool Deserialize(SkStream *, SkFontDescriptor *result)
FlutterSemanticsFlag flags
static const int kMissingInput
static const int kNotAnSKP
int main(int argc, char **argv)
static const int kIOError
static const int kSuccess
static const int kInvalidTag
static DEFINE_bool2(version, v, true, "version")
static DEFINE_string2(input, i, "", "skp on which to report")
static const int kTruncatedFile