| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2007 The Android Open Source Project | 3 * Copyright 2007 The Android Open Source Project |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef SkPicture_DEFINED | 10 #ifndef SkPicture_DEFINED |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 // V27: Remove SkUnitMapper from gradients (and skia). | 236 // V27: Remove SkUnitMapper from gradients (and skia). |
| 237 // V28: No longer call bitmap::flatten inside SkWriteBuffer::writeBitmap. | 237 // V28: No longer call bitmap::flatten inside SkWriteBuffer::writeBitmap. |
| 238 // V29: Removed SaveFlags parameter from save(). | 238 // V29: Removed SaveFlags parameter from save(). |
| 239 // V30: Remove redundant SkMatrix from SkLocalMatrixShader. | 239 // V30: Remove redundant SkMatrix from SkLocalMatrixShader. |
| 240 // V31: Add a serialized UniqueID to SkImageFilter. | 240 // V31: Add a serialized UniqueID to SkImageFilter. |
| 241 // V32: Removed SkPaintOptionsAndroid from SkPaint | 241 // V32: Removed SkPaintOptionsAndroid from SkPaint |
| 242 // V33: Serialize only public API of effects. | 242 // V33: Serialize only public API of effects. |
| 243 // V34: Add SkTextBlob serialization. | 243 // V34: Add SkTextBlob serialization. |
| 244 // V35: Store SkRect (rather then width & height) in header | 244 // V35: Store SkRect (rather then width & height) in header |
| 245 // V36: Remove (obsolete) alphatype from SkColorTable | 245 // V36: Remove (obsolete) alphatype from SkColorTable |
| 246 // V37: Added shadow only option to SkDropShadowImageFilter |
| 246 | 247 |
| 247 // Note: If the picture version needs to be increased then please follow the | 248 // Note: If the picture version needs to be increased then please follow the |
| 248 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g
l/qATVcw | 249 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g
l/qATVcw |
| 249 | 250 |
| 250 // Only SKPs within the min/current picture version range (inclusive) can be
read. | 251 // Only SKPs within the min/current picture version range (inclusive) can be
read. |
| 251 static const uint32_t MIN_PICTURE_VERSION = 19; | 252 static const uint32_t MIN_PICTURE_VERSION = 19; |
| 252 static const uint32_t CURRENT_PICTURE_VERSION = 36; | 253 static const uint32_t CURRENT_PICTURE_VERSION = 37; |
| 253 | 254 |
| 254 mutable uint32_t fUniqueID; | 255 mutable uint32_t fUniqueID; |
| 255 | 256 |
| 256 SkAutoTDelete<const SkPictureData> fData; | 257 SkAutoTDelete<const SkPictureData> fData; |
| 257 const SkScalar fCullWidth; | 258 const SkScalar fCullWidth; |
| 258 const SkScalar fCullHeight; | 259 const SkScalar fCullHeight; |
| 259 mutable SkAutoTUnref<const AccelData> fAccelData; | 260 mutable SkAutoTUnref<const AccelData> fAccelData; |
| 260 | 261 |
| 261 mutable SkTDArray<DeletionListener*> fDeletionListeners; // pointers are re
fed | 262 mutable SkTDArray<DeletionListener*> fDeletionListeners; // pointers are re
fed |
| 262 | 263 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 bool fWillPlaybackBitmaps; | 303 bool fWillPlaybackBitmaps; |
| 303 bool fHasText; | 304 bool fHasText; |
| 304 int fNumPaintWithPathEffectUses; | 305 int fNumPaintWithPathEffectUses; |
| 305 int fNumFastPathDashEffects; | 306 int fNumFastPathDashEffects; |
| 306 int fNumAAConcavePaths; | 307 int fNumAAConcavePaths; |
| 307 int fNumAAHairlineConcavePaths; | 308 int fNumAAHairlineConcavePaths; |
| 308 } fAnalysis; | 309 } fAnalysis; |
| 309 }; | 310 }; |
| 310 | 311 |
| 311 #endif | 312 #endif |
| OLD | NEW |