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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 /** PRIVATE / EXPERIMENTAL -- do not call | 283 /** PRIVATE / EXPERIMENTAL -- do not call |
284 Return the operations required to render the content inside 'queryRect'. | 284 Return the operations required to render the content inside 'queryRect'. |
285 */ | 285 */ |
286 const OperationList* EXPERIMENTAL_getActiveOps(const SkRect& queryRect) cons
t; | 286 const OperationList* EXPERIMENTAL_getActiveOps(const SkRect& queryRect) cons
t; |
287 | 287 |
288 void createHeader(SkPictInfo* info) const; | 288 void createHeader(SkPictInfo* info) const; |
289 static bool IsValidPictInfo(const SkPictInfo& info); | 289 static bool IsValidPictInfo(const SkPictInfo& info); |
290 | 290 |
291 friend class SkPictureData; // to access OperationList | 291 friend class SkPictureData; // to access OperationList |
292 friend class SkPictureRecorder; // just for SkPicture-based const
ructor | 292 friend class SkPictureRecorder; // just for SkPicture-based const
ructor |
293 friend class SkGpuDevice; // for EXPERIMENTAL_getActiveOps/
OperationList | 293 friend class SkGpuDevice; // for fData access |
294 friend class GrLayerHoister; // for EXPERIMENTAL_getActiveOps/
OperationList | |
295 friend class CollectLayers; // access to fRecord | 294 friend class CollectLayers; // access to fRecord |
296 friend class SkPicturePlayback; // to get fData & OperationList | 295 friend class SkPicturePlayback; // to get fData & OperationList |
297 friend class SkPictureReplacementPlayback; // to access OperationList | 296 friend class SkPictureReplacementPlayback; // to access OperationList |
298 | 297 |
299 typedef SkRefCnt INHERITED; | 298 typedef SkRefCnt INHERITED; |
300 | 299 |
301 // Takes ownership of the SkRecord, refs the (optional) BBH. | 300 // Takes ownership of the SkRecord, refs the (optional) BBH. |
302 SkPicture(SkScalar width, SkScalar height, SkRecord*, SkBBoxHierarchy*); | 301 SkPicture(SkScalar width, SkScalar height, SkRecord*, SkBBoxHierarchy*); |
303 // Return as a new SkPicture that's backed by SkRecord. | 302 // Return as a new SkPicture that's backed by SkRecord. |
304 static SkPicture* Forwardport(const SkPicture&); | 303 static SkPicture* Forwardport(const SkPicture&); |
(...skipping 12 matching lines...) Expand all Loading... |
317 bool fWillPlaybackBitmaps; | 316 bool fWillPlaybackBitmaps; |
318 bool fHasText; | 317 bool fHasText; |
319 int fNumPaintWithPathEffectUses; | 318 int fNumPaintWithPathEffectUses; |
320 int fNumFastPathDashEffects; | 319 int fNumFastPathDashEffects; |
321 int fNumAAConcavePaths; | 320 int fNumAAConcavePaths; |
322 int fNumAAHairlineConcavePaths; | 321 int fNumAAHairlineConcavePaths; |
323 } fAnalysis; | 322 } fAnalysis; |
324 }; | 323 }; |
325 | 324 |
326 #endif | 325 #endif |
OLD | NEW |