From dcb8e54ffdc9194744c0ec839969102bd0f582c6 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Wed, 5 Mar 2014 18:25:20 +0000 Subject: This CL is motivated by the desire to make the skpinfo tool work a bit better. The main concern is that the assumptions made w.r.t. written bytes may not be valid for all SkWStream sub-classes. R=bungeman@gmail.com, bungeman@google.com, reed@google.com, mtklein@google.com Author: robertphillips@google.com Review URL: https://codereview.chromium.org/182733008 git-svn-id: http://skia.googlecode.com/svn/trunk@13673 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tools/skpinfo.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'tools/skpinfo.cpp') diff --git a/tools/skpinfo.cpp b/tools/skpinfo.cpp index 97171c5999..087d7a3565 100644 --- a/tools/skpinfo.cpp +++ b/tools/skpinfo.cpp @@ -103,9 +103,16 @@ int tool_main(int argc, char** argv) { case SK_PICT_FACTORY_TAG: if (FLAGS_tags && !FLAGS_quiet) { SkDebugf("SK_PICT_FACTORY_TAG %d\n", chunkSize); - SkDebugf("Exiting early due to format limitations\n"); } - return kSuccess; // TODO: need to store size in bytes + // Remove this code when v21 and below are no longer supported +#ifndef DISABLE_V21_COMPATIBILITY_CODE + if (info.fVersion < 22) { + if (!FLAGS_quiet) { + SkDebugf("Exiting early due to format limitations\n"); + } + return kSuccess; // TODO: need to store size in bytes + } +#endif break; case SK_PICT_TYPEFACE_TAG: if (FLAGS_tags && !FLAGS_quiet) { -- cgit v1.2.3