| 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 |
| 11 #define SkPicture_DEFINED | 11 #define SkPicture_DEFINED |
| 12 | 12 |
| 13 #include "SkBitmap.h" | 13 #include "SkBitmap.h" |
| 14 #include "SkDrawPictureCallback.h" | 14 #include "SkDrawPictureCallback.h" |
| 15 #include "SkImageDecoder.h" | 15 #include "SkImageDecoder.h" |
| 16 #include "SkRefCnt.h" | 16 #include "SkRefCnt.h" |
| 17 #include "SkTDArray.h" | 17 #include "SkTDArray.h" |
| 18 | 18 |
| 19 #if SK_SUPPORT_GPU | 19 #if SK_SUPPORT_GPU |
| 20 class GrContext; | 20 class GrContext; |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 class GrAccelData; | |
| 24 class GrReplacements; | |
| 25 class SkBBoxHierarchy; | 23 class SkBBoxHierarchy; |
| 26 class SkCanvas; | 24 class SkCanvas; |
| 27 class SkData; | 25 class SkData; |
| 28 class SkPictureData; | 26 class SkPictureData; |
| 29 class SkPictureRecord; | 27 class SkPictureRecord; |
| 30 class SkStream; | 28 class SkStream; |
| 31 class SkWStream; | 29 class SkWStream; |
| 32 | 30 |
| 33 struct SkPictInfo; | 31 struct SkPictInfo; |
| 34 | 32 |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 SkPicture(SkScalar width, SkScalar height, const SkPictureRecord& record, bo
ol deepCopyOps); | 274 SkPicture(SkScalar width, SkScalar height, const SkPictureRecord& record, bo
ol deepCopyOps); |
| 277 | 275 |
| 278 void createHeader(SkPictInfo* info) const; | 276 void createHeader(SkPictInfo* info) const; |
| 279 static bool IsValidPictInfo(const SkPictInfo& info); | 277 static bool IsValidPictInfo(const SkPictInfo& info); |
| 280 | 278 |
| 281 friend class SkPictureRecorder; // SkRecord-based constructor. | 279 friend class SkPictureRecorder; // SkRecord-based constructor. |
| 282 friend class SkGpuDevice; // for fData access | 280 friend class SkGpuDevice; // for fData access |
| 283 friend class GrLayerHoister; // access to fRecord | 281 friend class GrLayerHoister; // access to fRecord |
| 284 friend class SkPicturePlayback; // to get fData | 282 friend class SkPicturePlayback; // to get fData |
| 285 friend class ReplaceDraw; | 283 friend class ReplaceDraw; |
| 286 friend const GrAccelData* GPUOptimize(const SkPicture* pict); | |
| 287 | 284 |
| 288 typedef SkRefCnt INHERITED; | 285 typedef SkRefCnt INHERITED; |
| 289 | 286 |
| 290 // Takes ownership of the SkRecord, refs the (optional) BBH. | 287 // Takes ownership of the SkRecord, refs the (optional) BBH. |
| 291 SkPicture(SkScalar width, SkScalar height, SkRecord*, SkBBoxHierarchy*); | 288 SkPicture(SkScalar width, SkScalar height, SkRecord*, SkBBoxHierarchy*); |
| 292 // Return as a new SkPicture that's backed by SkRecord. | 289 // Return as a new SkPicture that's backed by SkRecord. |
| 293 static SkPicture* Forwardport(const SkPicture&); | 290 static SkPicture* Forwardport(const SkPicture&); |
| 294 // Return as a new SkPicture that's backed by the old backend. | 291 // Return as a new SkPicture that's backed by the old backend. |
| 295 static SkPicture* Backport(const SkRecord& src, const SkRect& cullRect); | 292 static SkPicture* Backport(const SkRecord& src, const SkRect& cullRect); |
| 296 | 293 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 309 bool fHasText; | 306 bool fHasText; |
| 310 int fNumPaintWithPathEffectUses; | 307 int fNumPaintWithPathEffectUses; |
| 311 int fNumFastPathDashEffects; | 308 int fNumFastPathDashEffects; |
| 312 int fNumAAConcavePaths; | 309 int fNumAAConcavePaths; |
| 313 int fNumAAHairlineConcavePaths; | 310 int fNumAAHairlineConcavePaths; |
| 314 int fNumAADFEligibleConcavePaths; | 311 int fNumAADFEligibleConcavePaths; |
| 315 } fAnalysis; | 312 } fAnalysis; |
| 316 }; | 313 }; |
| 317 | 314 |
| 318 #endif | 315 #endif |
| OLD | NEW |