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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 // V2 : adds SkPixelRef's generation ID. | 196 // V2 : adds SkPixelRef's generation ID. |
197 // V3 : PictInfo tag at beginning, and EOF tag at the end | 197 // V3 : PictInfo tag at beginning, and EOF tag at the end |
198 // V4 : move SkPictInfo to be the header | 198 // V4 : move SkPictInfo to be the header |
199 // V5 : don't read/write FunctionPtr on cross-process (we can detect that) | 199 // V5 : don't read/write FunctionPtr on cross-process (we can detect that) |
200 // V6 : added serialization of SkPath's bounds (and packed its flags tighter
) | 200 // V6 : added serialization of SkPath's bounds (and packed its flags tighter
) |
201 // V7 : changed drawBitmapRect(IRect) to drawBitmapRectToRect(Rect) | 201 // V7 : changed drawBitmapRect(IRect) to drawBitmapRectToRect(Rect) |
202 // V8 : Add an option for encoding bitmaps | 202 // V8 : Add an option for encoding bitmaps |
203 // V9 : Allow the reader and writer of an SKP disagree on whether to support | 203 // V9 : Allow the reader and writer of an SKP disagree on whether to support |
204 // SK_SUPPORT_HINTING_SCALE_FACTOR | 204 // SK_SUPPORT_HINTING_SCALE_FACTOR |
205 // V10: add drawRRect, drawOval, clipRRect | 205 // V10: add drawRRect, drawOval, clipRRect |
206 static const uint32_t PICTURE_VERSION = 10; | 206 // V11: modify how readBitmap and writeBitmap store their info. |
| 207 static const uint32_t PICTURE_VERSION = 11; |
207 | 208 |
208 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to | 209 // fPlayback, fRecord, fWidth & fHeight are protected to allow derived class
es to |
209 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed | 210 // install their own SkPicturePlayback-derived players,SkPictureRecord-deriv
ed |
210 // recorders and set the picture size | 211 // recorders and set the picture size |
211 SkPicturePlayback* fPlayback; | 212 SkPicturePlayback* fPlayback; |
212 SkPictureRecord* fRecord; | 213 SkPictureRecord* fRecord; |
213 int fWidth, fHeight; | 214 int fWidth, fHeight; |
214 | 215 |
215 // For testing. Derived classes may instantiate an alternate | 216 // For testing. Derived classes may instantiate an alternate |
216 // SkBBoxHierarchy implementation | 217 // SkBBoxHierarchy implementation |
(...skipping 23 matching lines...) Expand all Loading... |
240 */ | 241 */ |
241 SkCanvas* getRecordingCanvas() const { return fCanvas; } | 242 SkCanvas* getRecordingCanvas() const { return fCanvas; } |
242 | 243 |
243 private: | 244 private: |
244 SkPicture* fPicture; | 245 SkPicture* fPicture; |
245 SkCanvas* fCanvas; | 246 SkCanvas* fCanvas; |
246 }; | 247 }; |
247 | 248 |
248 | 249 |
249 #endif | 250 #endif |
OLD | NEW |