| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2007 The Android Open Source Project | 2 * Copyright 2007 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 | 8 |
| 9 #ifndef SkPicture_DEFINED | 9 #ifndef SkPicture_DEFINED |
| 10 #define SkPicture_DEFINED | 10 #define SkPicture_DEFINED |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 static const uint32_t CURRENT_PICTURE_VERSION = 41; | 254 static const uint32_t CURRENT_PICTURE_VERSION = 41; |
| 255 | 255 |
| 256 static_assert(MIN_PICTURE_VERSION <= 41, | 256 static_assert(MIN_PICTURE_VERSION <= 41, |
| 257 "Remove kFontFileName and related code from SkFontDescriptor.c
pp."); | 257 "Remove kFontFileName and related code from SkFontDescriptor.c
pp."); |
| 258 | 258 |
| 259 void createHeader(SkPictInfo* info) const; | 259 void createHeader(SkPictInfo* info) const; |
| 260 static bool IsValidPictInfo(const SkPictInfo& info); | 260 static bool IsValidPictInfo(const SkPictInfo& info); |
| 261 | 261 |
| 262 // Takes ownership of the SkRecord and (optional) SnapshotArray, refs the (o
ptional) BBH. | 262 // Takes ownership of the SkRecord and (optional) SnapshotArray, refs the (o
ptional) BBH. |
| 263 SkPicture(const SkRect& cullRect, | 263 SkPicture(const SkRect& cullRect, |
| 264 SkRecord*, | 264 SkRecord*, |
| 265 SnapshotArray*, | 265 SnapshotArray*, |
| 266 SkBBoxHierarchy*, | 266 SkBBoxHierarchy*, |
| 267 size_t approxBytesUsedBySubPictures); | 267 size_t approxBytesUsedBySubPictures); |
| 268 | 268 |
| 269 static SkPicture* Forwardport(const SkPictInfo&, const SkPictureData*); | 269 static SkPicture* Forwardport(const SkPictInfo&, const SkPictureData*); |
| 270 static SkPictureData* Backport(const SkRecord&, const SkPictInfo&, | 270 static SkPictureData* Backport(const SkRecord&, const SkPictInfo&, |
| 271 SkPicture const* const drawablePics[], int dr
awableCount); | 271 SkPicture const* const drawablePics[], int dr
awableCount); |
| 272 | 272 |
| 273 // uint32_t fRefCnt; from SkNVRefCnt<SkPicture> | 273 // uint32_t fRefCnt; from SkNVRefCnt<SkPicture> |
| 274 mutable uint32_t fUniqueID; | 274 mutable uint32_t fUniqueID; |
| 275 const SkRect fCullRect; | 275 const SkRect fCullRect; |
| 276 mutable SkAutoTUnref<const AccelData> fAccelData; | 276 mutable SkAutoTUnref<const AccelData> fAccelData; |
| 277 SkAutoTUnref<const SkRecord> fRecord; | 277 SkAutoTUnref<const SkRecord> fRecord; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 303 | 303 |
| 304 friend class SkPictureRecorder; // SkRecord-based constructor. | 304 friend class SkPictureRecorder; // SkRecord-based constructor. |
| 305 friend class GrLayerHoister; // access to fRecord | 305 friend class GrLayerHoister; // access to fRecord |
| 306 friend class ReplaceDraw; | 306 friend class ReplaceDraw; |
| 307 friend class SkPictureUtils; | 307 friend class SkPictureUtils; |
| 308 friend class SkRecordedDrawable; | 308 friend class SkRecordedDrawable; |
| 309 }; | 309 }; |
| 310 SK_COMPILE_ASSERT(sizeof(SkPicture) <= 104, SkPictureSize); | 310 SK_COMPILE_ASSERT(sizeof(SkPicture) <= 104, SkPictureSize); |
| 311 | 311 |
| 312 #endif | 312 #endif |
| OLD | NEW |