| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 // V13: add flag to drawBitmapRectToRect | 243 // V13: add flag to drawBitmapRectToRect |
| 244 // parameterize blurs by sigma rather than radius | 244 // parameterize blurs by sigma rather than radius |
| 245 // V14: Add flags word to PathRef serialization | 245 // V14: Add flags word to PathRef serialization |
| 246 // V15: Remove A1 bitmpa config (and renumber remaining configs) | 246 // V15: Remove A1 bitmpa config (and renumber remaining configs) |
| 247 // V16: Move SkPath's isOval flag to SkPathRef | 247 // V16: Move SkPath's isOval flag to SkPathRef |
| 248 // V17: SkPixelRef now writes SkImageInfo | 248 // V17: SkPixelRef now writes SkImageInfo |
| 249 // V18: SkBitmap now records x,y for its pixelref origin, instead of offset. | 249 // V18: SkBitmap now records x,y for its pixelref origin, instead of offset. |
| 250 // V19: encode matrices and regions into the ops stream | 250 // V19: encode matrices and regions into the ops stream |
| 251 // V20: added bool to SkPictureImageFilter's serialization (to allow SkPictu
re serialization) | 251 // V20: added bool to SkPictureImageFilter's serialization (to allow SkPictu
re serialization) |
| 252 // V21: add pushCull, popCull | 252 // V21: add pushCull, popCull |
| 253 // V22: SK_PICT_FACTORY_TAG's size is now the chunk size in bytes |
| 253 | 254 |
| 254 // Note: If the picture version needs to be increased then please follow the | 255 // Note: If the picture version needs to be increased then please follow the |
| 255 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g
l/qATVcw | 256 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g
l/qATVcw |
| 256 | 257 |
| 257 // Only SKPs within the min/current picture version range (inclusive) can be
read. | 258 // Only SKPs within the min/current picture version range (inclusive) can be
read. |
| 258 static const uint32_t MIN_PICTURE_VERSION = 19; | 259 static const uint32_t MIN_PICTURE_VERSION = 19; |
| 259 static const uint32_t CURRENT_PICTURE_VERSION = 21; | 260 static const uint32_t CURRENT_PICTURE_VERSION = 22; |
| 260 | 261 |
| 261 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to | 262 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to |
| 262 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed | 263 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed |
| 263 // recorders and set the picture size | 264 // recorders and set the picture size |
| 264 SkPicturePlayback* fPlayback; | 265 SkPicturePlayback* fPlayback; |
| 265 SkPictureRecord* fRecord; | 266 SkPictureRecord* fRecord; |
| 266 int fWidth, fHeight; | 267 int fWidth, fHeight; |
| 267 | 268 |
| 268 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of | 269 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of |
| 269 // playback is unchanged. | 270 // playback is unchanged. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 293 */ | 294 */ |
| 294 class SK_API SkDrawPictureCallback { | 295 class SK_API SkDrawPictureCallback { |
| 295 public: | 296 public: |
| 296 SkDrawPictureCallback() {} | 297 SkDrawPictureCallback() {} |
| 297 virtual ~SkDrawPictureCallback() {} | 298 virtual ~SkDrawPictureCallback() {} |
| 298 | 299 |
| 299 virtual bool abortDrawing() = 0; | 300 virtual bool abortDrawing() = 0; |
| 300 }; | 301 }; |
| 301 | 302 |
| 302 #endif | 303 #endif |
| OLD | NEW |