| 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 // parameterize blurs by sigma rather than radius | 302 // parameterize blurs by sigma rather than radius |
| 303 // V14: Add flags word to PathRef serialization | 303 // V14: Add flags word to PathRef serialization |
| 304 // V15: Remove A1 bitmap config (and renumber remaining configs) | 304 // V15: Remove A1 bitmap config (and renumber remaining configs) |
| 305 // V16: Move SkPath's isOval flag to SkPathRef | 305 // V16: Move SkPath's isOval flag to SkPathRef |
| 306 // V17: SkPixelRef now writes SkImageInfo | 306 // V17: SkPixelRef now writes SkImageInfo |
| 307 // V18: SkBitmap now records x,y for its pixelref origin, instead of offset. | 307 // V18: SkBitmap now records x,y for its pixelref origin, instead of offset. |
| 308 // V19: encode matrices and regions into the ops stream | 308 // V19: encode matrices and regions into the ops stream |
| 309 // V20: added bool to SkPictureImageFilter's serialization (to allow SkPictu
re serialization) | 309 // V20: added bool to SkPictureImageFilter's serialization (to allow SkPictu
re serialization) |
| 310 // V21: add pushCull, popCull | 310 // V21: add pushCull, popCull |
| 311 // V22: SK_PICT_FACTORY_TAG's size is now the chunk size in bytes | 311 // V22: SK_PICT_FACTORY_TAG's size is now the chunk size in bytes |
| 312 // V23: SkPaint::FilterLevel became a real enum |
| 312 | 313 |
| 313 // Note: If the picture version needs to be increased then please follow the | 314 // Note: If the picture version needs to be increased then please follow the |
| 314 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g
l/qATVcw | 315 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g
l/qATVcw |
| 315 | 316 |
| 316 // Only SKPs within the min/current picture version range (inclusive) can be
read. | 317 // Only SKPs within the min/current picture version range (inclusive) can be
read. |
| 317 static const uint32_t MIN_PICTURE_VERSION = 19; | 318 static const uint32_t MIN_PICTURE_VERSION = 19; |
| 318 static const uint32_t CURRENT_PICTURE_VERSION = 22; | 319 static const uint32_t CURRENT_PICTURE_VERSION = 23; |
| 319 | 320 |
| 320 mutable uint32_t fUniqueID; | 321 mutable uint32_t fUniqueID; |
| 321 | 322 |
| 322 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to | 323 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to |
| 323 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed | 324 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed |
| 324 // recorders and set the picture size | 325 // recorders and set the picture size |
| 325 SkPicturePlayback* fPlayback; | 326 SkPicturePlayback* fPlayback; |
| 326 SkPictureRecord* fRecord; | 327 SkPictureRecord* fRecord; |
| 327 int fWidth, fHeight; | 328 int fWidth, fHeight; |
| 328 const AccelData* fAccelData; | 329 const AccelData* fAccelData; |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 } | 471 } |
| 471 | 472 |
| 472 private: | 473 private: |
| 473 SkAutoTUnref<SkPictureFactory> fFactory; | 474 SkAutoTUnref<SkPictureFactory> fFactory; |
| 474 SkAutoTUnref<SkPicture> fPicture; | 475 SkAutoTUnref<SkPicture> fPicture; |
| 475 | 476 |
| 476 typedef SkNoncopyable INHERITED; | 477 typedef SkNoncopyable INHERITED; |
| 477 }; | 478 }; |
| 478 | 479 |
| 479 #endif | 480 #endif |
| OLD | NEW |