Chromium Code Reviews| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 201 // V4 : move SkPictInfo to be the header | 201 // V4 : move SkPictInfo to be the header |
| 202 // V5 : don't read/write FunctionPtr on cross-process (we can detect that) | 202 // V5 : don't read/write FunctionPtr on cross-process (we can detect that) |
| 203 // V6 : added serialization of SkPath's bounds (and packed its flags tighter ) | 203 // V6 : added serialization of SkPath's bounds (and packed its flags tighter ) |
| 204 // V7 : changed drawBitmapRect(IRect) to drawBitmapRectToRect(Rect) | 204 // V7 : changed drawBitmapRect(IRect) to drawBitmapRectToRect(Rect) |
| 205 // V8 : Add an option for encoding bitmaps | 205 // V8 : Add an option for encoding bitmaps |
| 206 // V9 : Allow the reader and writer of an SKP disagree on whether to support | 206 // V9 : Allow the reader and writer of an SKP disagree on whether to support |
| 207 // SK_SUPPORT_HINTING_SCALE_FACTOR | 207 // SK_SUPPORT_HINTING_SCALE_FACTOR |
| 208 // V10: add drawRRect, drawOval, clipRRect | 208 // V10: add drawRRect, drawOval, clipRRect |
| 209 // V11: modify how readBitmap and writeBitmap store their info. | 209 // V11: modify how readBitmap and writeBitmap store their info. |
| 210 // V12: add conics to SkPath, use new SkPathRef flattening | 210 // V12: add conics to SkPath, use new SkPathRef flattening |
| 211 static const uint32_t PICTURE_VERSION = 12; | 211 // V13: add flag to drawBitmapRectToRect |
| 212 static const uint32_t PRIOR_PICTURE_VERSION = 12; // TODO: remove when .skp s regenerated | |
|
jvanverth1
2013/07/29 14:35:37
Might be good to add a #define to bracket all of t
robertphillips
2013/07/29 15:27:32
Done.
| |
| 213 static const uint32_t PICTURE_VERSION = 13; | |
| 212 | 214 |
| 213 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class es to | 215 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class es to |
| 214 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv ed | 216 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv ed |
| 215 // recorders and set the picture size | 217 // recorders and set the picture size |
| 216 SkPicturePlayback* fPlayback; | 218 SkPicturePlayback* fPlayback; |
| 217 SkPictureRecord* fRecord; | 219 SkPictureRecord* fRecord; |
| 218 int fWidth, fHeight; | 220 int fWidth, fHeight; |
| 219 | 221 |
| 220 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of | 222 // Create a new SkPicture from an existing SkPicturePlayback. Ref count of |
| 221 // playback is unchanged. | 223 // playback is unchanged. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 269 */ | 271 */ |
| 270 class SK_API SkDrawPictureCallback { | 272 class SK_API SkDrawPictureCallback { |
| 271 public: | 273 public: |
| 272 SkDrawPictureCallback() {} | 274 SkDrawPictureCallback() {} |
| 273 virtual ~SkDrawPictureCallback() {} | 275 virtual ~SkDrawPictureCallback() {} |
| 274 | 276 |
| 275 virtual bool abortDrawing() = 0; | 277 virtual bool abortDrawing() = 0; |
| 276 }; | 278 }; |
| 277 | 279 |
| 278 #endif | 280 #endif |
| OLD | NEW |