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 static const uint32_t PICTURE_VERSION = 20; | 242 // V21: add pushCull, popCull |
| 243 static const uint32_t PICTURE_VERSION = 21; |
243 | 244 |
244 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to | 245 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to |
245 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed | 246 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed |
246 // recorders and set the picture size | 247 // recorders and set the picture size |
247 SkPicturePlayback* fPlayback; | 248 SkPicturePlayback* fPlayback; |
248 SkPictureRecord* fRecord; | 249 SkPictureRecord* fRecord; |
249 int fWidth, fHeight; | 250 int fWidth, fHeight; |
250 | 251 |
251 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of | 252 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of |
252 // playback is unchanged. | 253 // playback is unchanged. |
(...skipping 30 matching lines...) Expand all Loading... |
283 */ | 284 */ |
284 class SK_API SkDrawPictureCallback { | 285 class SK_API SkDrawPictureCallback { |
285 public: | 286 public: |
286 SkDrawPictureCallback() {} | 287 SkDrawPictureCallback() {} |
287 virtual ~SkDrawPictureCallback() {} | 288 virtual ~SkDrawPictureCallback() {} |
288 | 289 |
289 virtual bool abortDrawing() = 0; | 290 virtual bool abortDrawing() = 0; |
290 }; | 291 }; |
291 | 292 |
292 #endif | 293 #endif |
OLD | NEW |