| 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 typedef SkRefCnt INHERITED; | 301 typedef SkRefCnt INHERITED; |
| 302 | 302 |
| 303 // Takes ownership of the SkRecord, refs the (optional) BBH. | 303 // Takes ownership of the SkRecord, refs the (optional) BBH. |
| 304 SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*); | 304 SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*); |
| 305 // Return as a new SkPicture that's backed by SkRecord. | 305 // Return as a new SkPicture that's backed by SkRecord. |
| 306 static SkPicture* Forwardport(const SkPicture&); | 306 static SkPicture* Forwardport(const SkPicture&); |
| 307 | 307 |
| 308 SkAutoTDelete<SkRecord> fRecord; | 308 SkAutoTDelete<SkRecord> fRecord; |
| 309 SkAutoTUnref<SkBBoxHierarchy> fBBH; | 309 SkAutoTUnref<SkBBoxHierarchy> fBBH; |
| 310 | 310 |
| 311 struct PathCounter; |
| 312 |
| 311 struct Analysis { | 313 struct Analysis { |
| 312 Analysis() {} // Only used by SkPictureData codepath. | 314 Analysis() {} // Only used by SkPictureData codepath. |
| 313 explicit Analysis(const SkRecord&); | 315 explicit Analysis(const SkRecord&); |
| 314 | 316 |
| 315 bool suitableForGpuRasterization(const char** reason, int sampleCount) c
onst; | 317 bool suitableForGpuRasterization(const char** reason, int sampleCount) c
onst; |
| 316 | 318 |
| 317 bool fWillPlaybackBitmaps; | 319 bool fWillPlaybackBitmaps; |
| 318 bool fHasText; | 320 bool fHasText; |
| 319 int fNumPaintWithPathEffectUses; | 321 int fNumPaintWithPathEffectUses; |
| 320 int fNumFastPathDashEffects; | 322 int fNumFastPathDashEffects; |
| 321 int fNumAAConcavePaths; | 323 int fNumAAConcavePaths; |
| 322 int fNumAAHairlineConcavePaths; | 324 int fNumAAHairlineConcavePaths; |
| 323 } fAnalysis; | 325 } fAnalysis; |
| 324 }; | 326 }; |
| 325 | 327 |
| 326 #endif | 328 #endif |
| OLD | NEW |