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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 // V26: Removed boolean from SkColorShader for inheriting color from SkPaint
. | 242 // V26: Removed boolean from SkColorShader for inheriting color from SkPaint
. |
243 // V27: Remove SkUnitMapper from gradients (and skia). | 243 // V27: Remove SkUnitMapper from gradients (and skia). |
244 // V28: No longer call bitmap::flatten inside SkWriteBuffer::writeBitmap. | 244 // V28: No longer call bitmap::flatten inside SkWriteBuffer::writeBitmap. |
245 // V29: Removed SaveFlags parameter from save(). | 245 // V29: Removed SaveFlags parameter from save(). |
246 // V30: Remove redundant SkMatrix from SkLocalMatrixShader. | 246 // V30: Remove redundant SkMatrix from SkLocalMatrixShader. |
247 // V31: Add a serialized UniqueID to SkImageFilter. | 247 // V31: Add a serialized UniqueID to SkImageFilter. |
248 // V32: Removed SkPaintOptionsAndroid from SkPaint | 248 // V32: Removed SkPaintOptionsAndroid from SkPaint |
249 // V33: Serialize only public API of effects. | 249 // V33: Serialize only public API of effects. |
250 // V34: Add SkTextBlob serialization. | 250 // V34: Add SkTextBlob serialization. |
251 // V35: Store SkRect (rather then width & height) in header | 251 // V35: Store SkRect (rather then width & height) in header |
| 252 // V36: Remove (obsolete) alphatype from SkColorTable |
252 | 253 |
253 // Note: If the picture version needs to be increased then please follow the | 254 // Note: If the picture version needs to be increased then please follow the |
254 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g
l/qATVcw | 255 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g
l/qATVcw |
255 | 256 |
256 // Only SKPs within the min/current picture version range (inclusive) can be
read. | 257 // Only SKPs within the min/current picture version range (inclusive) can be
read. |
257 static const uint32_t MIN_PICTURE_VERSION = 19; | 258 static const uint32_t MIN_PICTURE_VERSION = 19; |
258 static const uint32_t CURRENT_PICTURE_VERSION = 35; | 259 static const uint32_t CURRENT_PICTURE_VERSION = 36; |
259 | 260 |
260 mutable uint32_t fUniqueID; | 261 mutable uint32_t fUniqueID; |
261 | 262 |
262 // TODO: make SkPictureData const when clone method goes away | 263 // TODO: make SkPictureData const when clone method goes away |
263 SkAutoTDelete<SkPictureData> fData; | 264 SkAutoTDelete<SkPictureData> fData; |
264 const SkScalar fCullWidth; | 265 const SkScalar fCullWidth; |
265 const SkScalar fCullHeight; | 266 const SkScalar fCullHeight; |
266 mutable SkAutoTUnref<const AccelData> fAccelData; | 267 mutable SkAutoTUnref<const AccelData> fAccelData; |
267 | 268 |
268 mutable SkTDArray<DeletionListener*> fDeletionListeners; // pointers are re
fed | 269 mutable SkTDArray<DeletionListener*> fDeletionListeners; // pointers are re
fed |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 bool fWillPlaybackBitmaps; | 328 bool fWillPlaybackBitmaps; |
328 bool fHasText; | 329 bool fHasText; |
329 int fNumPaintWithPathEffectUses; | 330 int fNumPaintWithPathEffectUses; |
330 int fNumFastPathDashEffects; | 331 int fNumFastPathDashEffects; |
331 int fNumAAConcavePaths; | 332 int fNumAAConcavePaths; |
332 int fNumAAHairlineConcavePaths; | 333 int fNumAAHairlineConcavePaths; |
333 } fAnalysis; | 334 } fAnalysis; |
334 }; | 335 }; |
335 | 336 |
336 #endif | 337 #endif |
OLD | NEW |