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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 // V9 : Allow the reader and writer of an SKP disagree on whether to support | 213 // V9 : Allow the reader and writer of an SKP disagree on whether to support |
214 // SK_SUPPORT_HINTING_SCALE_FACTOR | 214 // SK_SUPPORT_HINTING_SCALE_FACTOR |
215 // V10: add drawRRect, drawOval, clipRRect | 215 // V10: add drawRRect, drawOval, clipRRect |
216 // V11: modify how readBitmap and writeBitmap store their info. | 216 // V11: modify how readBitmap and writeBitmap store their info. |
217 // V12: add conics to SkPath, use new SkPathRef flattening | 217 // V12: add conics to SkPath, use new SkPathRef flattening |
218 // V13: add flag to drawBitmapRectToRect | 218 // V13: add flag to drawBitmapRectToRect |
219 // parameterize blurs by sigma rather than radius | 219 // parameterize blurs by sigma rather than radius |
220 // V14: Add flags word to PathRef serialization | 220 // V14: Add flags word to PathRef serialization |
221 // V15: Remove A1 bitmpa config (and renumber remaining configs) | 221 // V15: Remove A1 bitmpa config (and renumber remaining configs) |
222 // V16: Move SkPath's isOval flag to SkPathRef | 222 // V16: Move SkPath's isOval flag to SkPathRef |
| 223 // V17: Changes to PixelRef to store SkImageInfo |
223 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V16_AND_ALL_OTHER_INSTANCES_TO
O | 224 #ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V16_AND_ALL_OTHER_INSTANCES_TO
O |
224 static const uint32_t PRIOR_PICTURE_VERSION = 15; // TODO: remove when .skp
s regenerated | 225 static const uint32_t PRIOR_PICTURE_VERSION = 15; // TODO: remove when .skp
s regenerated |
225 #endif | 226 #endif |
226 static const uint32_t PICTURE_VERSION = 16; | 227 static const uint32_t PICTURE_VERSION = 17; |
227 | 228 |
228 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to | 229 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to |
229 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed | 230 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed |
230 // recorders and set the picture size | 231 // recorders and set the picture size |
231 SkPicturePlayback* fPlayback; | 232 SkPicturePlayback* fPlayback; |
232 SkPictureRecord* fRecord; | 233 SkPictureRecord* fRecord; |
233 int fWidth, fHeight; | 234 int fWidth, fHeight; |
234 | 235 |
235 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of | 236 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of |
236 // playback is unchanged. | 237 // playback is unchanged. |
(...skipping 27 matching lines...) Expand all Loading... |
264 */ | 265 */ |
265 class SK_API SkDrawPictureCallback { | 266 class SK_API SkDrawPictureCallback { |
266 public: | 267 public: |
267 SkDrawPictureCallback() {} | 268 SkDrawPictureCallback() {} |
268 virtual ~SkDrawPictureCallback() {} | 269 virtual ~SkDrawPictureCallback() {} |
269 | 270 |
270 virtual bool abortDrawing() = 0; | 271 virtual bool abortDrawing() = 0; |
271 }; | 272 }; |
272 | 273 |
273 #endif | 274 #endif |
OLD | NEW |