| 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 }; | 273 }; |
| 274 | 274 |
| 275 /** PRIVATE / EXPERIMENTAL -- do not call | 275 /** PRIVATE / EXPERIMENTAL -- do not call |
| 276 Return the operations required to render the content inside 'queryRect'. | 276 Return the operations required to render the content inside 'queryRect'. |
| 277 */ | 277 */ |
| 278 const OperationList* EXPERIMENTAL_getActiveOps(const SkIRect& queryRect) con
st; | 278 const OperationList* EXPERIMENTAL_getActiveOps(const SkIRect& queryRect) con
st; |
| 279 | 279 |
| 280 void createHeader(SkPictInfo* info) const; | 280 void createHeader(SkPictInfo* info) const; |
| 281 static bool IsValidPictInfo(const SkPictInfo& info); | 281 static bool IsValidPictInfo(const SkPictInfo& info); |
| 282 | 282 |
| 283 friend class SkFlatPicture; | 283 friend class SkPictureData; // to access OperationList |
| 284 friend class SkPictureData; | 284 friend class SkPictureRecorder; // just for SkPicture-based const
ructor |
| 285 friend class SkPictureRecorder; // just for SkPicture-based constructor | 285 friend class SkGpuDevice; // for EXPERIMENTAL_getActiveOps/
OperationList |
| 286 friend class SkGpuDevice; | 286 friend class GrGatherCanvas; // needs to know if old or new pi
cture |
| 287 friend class GrGatherCanvas; | 287 friend class SkPicturePlayback; // to get fData & OperationList |
| 288 friend class GrGatherDevice; | |
| 289 friend class SkDebugCanvas; | |
| 290 friend class SkPicturePlayback; // to get fData | |
| 291 friend class SkPictureReplacementPlayback; // to access OperationList | 288 friend class SkPictureReplacementPlayback; // to access OperationList |
| 292 | 289 |
| 293 typedef SkRefCnt INHERITED; | 290 typedef SkRefCnt INHERITED; |
| 294 | 291 |
| 295 SkPicture(int width, int height, SkRecord*); // Takes ownership. | 292 SkPicture(int width, int height, SkRecord*); // Takes ownership. |
| 296 SkAutoTDelete<SkRecord> fRecord; | 293 SkAutoTDelete<SkRecord> fRecord; |
| 297 bool fRecordWillPlayBackBitmaps; // TODO: const | 294 bool fRecordWillPlayBackBitmaps; // TODO: const |
| 298 }; | 295 }; |
| 299 | 296 |
| 300 #endif | 297 #endif |
| OLD | NEW |