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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 // V21: add pushCull, popCull | 223 // V21: add pushCull, popCull |
224 // V22: SK_PICT_FACTORY_TAG's size is now the chunk size in bytes | 224 // V22: SK_PICT_FACTORY_TAG's size is now the chunk size in bytes |
225 // V23: SkPaint::FilterLevel became a real enum | 225 // V23: SkPaint::FilterLevel became a real enum |
226 // V24: SkTwoPointConicalGradient now has fFlipped flag for gradient flippin
g | 226 // V24: SkTwoPointConicalGradient now has fFlipped flag for gradient flippin
g |
227 // V25: SkDashPathEffect now only writes phase and interval array when flatt
ening | 227 // V25: SkDashPathEffect now only writes phase and interval array when flatt
ening |
228 // V26: Removed boolean from SkColorShader for inheriting color from SkPaint
. | 228 // V26: Removed boolean from SkColorShader for inheriting color from SkPaint
. |
229 // V27: Remove SkUnitMapper from gradients (and skia). | 229 // V27: Remove SkUnitMapper from gradients (and skia). |
230 // V28: No longer call bitmap::flatten inside SkWriteBuffer::writeBitmap. | 230 // V28: No longer call bitmap::flatten inside SkWriteBuffer::writeBitmap. |
231 // V29: Removed SaveFlags parameter from save(). | 231 // V29: Removed SaveFlags parameter from save(). |
232 // V30: Remove redundant SkMatrix from SkLocalMatrixShader. | 232 // V30: Remove redundant SkMatrix from SkLocalMatrixShader. |
| 233 // V31: Add a serialized UniqueID to SkImageFilter. |
233 | 234 |
234 // Note: If the picture version needs to be increased then please follow the | 235 // Note: If the picture version needs to be increased then please follow the |
235 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g
l/qATVcw | 236 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g
l/qATVcw |
236 | 237 |
237 // Only SKPs within the min/current picture version range (inclusive) can be
read. | 238 // Only SKPs within the min/current picture version range (inclusive) can be
read. |
238 static const uint32_t MIN_PICTURE_VERSION = 19; | 239 static const uint32_t MIN_PICTURE_VERSION = 19; |
239 static const uint32_t CURRENT_PICTURE_VERSION = 30; | 240 static const uint32_t CURRENT_PICTURE_VERSION = 31; |
240 | 241 |
241 mutable uint32_t fUniqueID; | 242 mutable uint32_t fUniqueID; |
242 | 243 |
243 // TODO: make SkPictureData const when clone method goes away | 244 // TODO: make SkPictureData const when clone method goes away |
244 SkAutoTDelete<SkPictureData> fData; | 245 SkAutoTDelete<SkPictureData> fData; |
245 int fWidth, fHeight; | 246 int fWidth, fHeight; |
246 mutable SkAutoTUnref<const AccelData> fAccelData; | 247 mutable SkAutoTUnref<const AccelData> fAccelData; |
247 | 248 |
248 mutable SkTDArray<DeletionListener*> fDeletionListeners; // pointers are re
fed | 249 mutable SkTDArray<DeletionListener*> fDeletionListeners; // pointers are re
fed |
249 | 250 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 friend class SkPictureReplacementPlayback; // to access OperationList | 288 friend class SkPictureReplacementPlayback; // to access OperationList |
288 | 289 |
289 typedef SkRefCnt INHERITED; | 290 typedef SkRefCnt INHERITED; |
290 | 291 |
291 SkPicture(int width, int height, SkRecord*); // Takes ownership. | 292 SkPicture(int width, int height, SkRecord*); // Takes ownership. |
292 SkAutoTDelete<SkRecord> fRecord; | 293 SkAutoTDelete<SkRecord> fRecord; |
293 bool fRecordWillPlayBackBitmaps; // TODO: const | 294 bool fRecordWillPlayBackBitmaps; // TODO: const |
294 }; | 295 }; |
295 | 296 |
296 #endif | 297 #endif |
OLD | NEW |