| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 // V12: add conics to SkPath, use new SkPathRef flattening | 232 // V12: add conics to SkPath, use new SkPathRef flattening |
| 233 // V13: add flag to drawBitmapRectToRect | 233 // V13: add flag to drawBitmapRectToRect |
| 234 // parameterize blurs by sigma rather than radius | 234 // parameterize blurs by sigma rather than radius |
| 235 // V14: Add flags word to PathRef serialization | 235 // V14: Add flags word to PathRef serialization |
| 236 // V15: Remove A1 bitmpa config (and renumber remaining configs) | 236 // V15: Remove A1 bitmpa config (and renumber remaining configs) |
| 237 // V16: Move SkPath's isOval flag to SkPathRef | 237 // V16: Move SkPath's isOval flag to SkPathRef |
| 238 // V17: SkPixelRef now writes SkImageInfo | 238 // V17: SkPixelRef now writes SkImageInfo |
| 239 // V18: SkBitmap now records x,y for its pixelref origin, instead of offset. | 239 // V18: SkBitmap now records x,y for its pixelref origin, instead of offset. |
| 240 // V19: encode matrices and regions into the ops stream | 240 // V19: encode matrices and regions into the ops stream |
| 241 // V20: added bool to SkPictureImageFilter's serialization (to allow SkPictu
re serialization) | 241 // V20: added bool to SkPictureImageFilter's serialization (to allow SkPictu
re serialization) |
| 242 |
| 243 // Note: If the picture version needs to be increased then please follow the |
| 244 // steps to generate new SKPs in (only accessible to Googlers): http://goo.g
l/qATVcw |
| 242 static const uint32_t PICTURE_VERSION = 20; | 245 static const uint32_t PICTURE_VERSION = 20; |
| 243 | 246 |
| 244 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to | 247 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to |
| 245 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed | 248 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed |
| 246 // recorders and set the picture size | 249 // recorders and set the picture size |
| 247 SkPicturePlayback* fPlayback; | 250 SkPicturePlayback* fPlayback; |
| 248 SkPictureRecord* fRecord; | 251 SkPictureRecord* fRecord; |
| 249 int fWidth, fHeight; | 252 int fWidth, fHeight; |
| 250 | 253 |
| 251 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of | 254 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 */ | 286 */ |
| 284 class SK_API SkDrawPictureCallback { | 287 class SK_API SkDrawPictureCallback { |
| 285 public: | 288 public: |
| 286 SkDrawPictureCallback() {} | 289 SkDrawPictureCallback() {} |
| 287 virtual ~SkDrawPictureCallback() {} | 290 virtual ~SkDrawPictureCallback() {} |
| 288 | 291 |
| 289 virtual bool abortDrawing() = 0; | 292 virtual bool abortDrawing() = 0; |
| 290 }; | 293 }; |
| 291 | 294 |
| 292 #endif | 295 #endif |
| OLD | NEW |