Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Unified Diff: tools/skpinfo.cpp

Issue 182733008: Switch the factory chunk in the skps to storing its size in bytes (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Added comment Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/utils/SkMD5.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skpinfo.cpp
===================================================================
--- tools/skpinfo.cpp (revision 13672)
+++ tools/skpinfo.cpp (working copy)
@@ -103,9 +103,16 @@
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) {
« no previous file with comments | « src/utils/SkMD5.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698