diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-05 18:25:20 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-05 18:25:20 +0000 |
commit | dcb8e54ffdc9194744c0ec839969102bd0f582c6 (patch) | |
tree | cf72b49c4037daafc9ffb7bc4000d84693ef176c /tools/skpinfo.cpp | |
parent | 890b826fa381643969a65792339f5274f75d5e9a (diff) |
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
Diffstat (limited to 'tools/skpinfo.cpp')
-rw-r--r-- | tools/skpinfo.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
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) { |