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

Unified Diff: include/core/SkPicture.h

Issue 178383003: Split picture version into min & max supported versions (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Set min picture version to 19 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 | « no previous file | src/core/SkPicture.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPicture.h
===================================================================
--- include/core/SkPicture.h (revision 13567)
+++ include/core/SkPicture.h (working copy)
@@ -242,8 +242,11 @@
// Note: If the picture version needs to be increased then please follow the
// steps to generate new SKPs in (only accessible to Googlers): http://goo.gl/qATVcw
- static const uint32_t PICTURE_VERSION = 20;
+ // Only SKPs within the min/current picture version range (inclusive) can be read.
+ static const uint32_t MIN_PICTURE_VERSION = 19;
+ static const uint32_t CURRENT_PICTURE_VERSION = 20;
+
// fPlayback, fRecord, fWidth & fHeight are protected to allow derived classes to
// install their own SkPicturePlayback-derived players,SkPictureRecord-derived
// recorders and set the picture size
« no previous file with comments | « no previous file | src/core/SkPicture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698