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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 | 300 |
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 | 305 |
306 SkAutoTDelete<SkRecord> fRecord; | 306 SkAutoTDelete<SkRecord> fRecord; |
307 SkAutoTUnref<SkBBoxHierarchy> fBBH; | 307 SkAutoTUnref<SkBBoxHierarchy> fBBH; |
308 | 308 |
309 struct Analysis { | 309 struct Analysis { |
310 // To get setup to work cleanly, we cast away constness and call init() | 310 Analysis() {} // Only used by SkPictureData codepath. |
311 // instead of trying to set everything during construction. | 311 explicit Analysis(const SkRecord&); |
312 void init(const SkRecord&); | |
313 | 312 |
314 bool suitableForGpuRasterization(const char** reason, int sampleCount) c
onst; | 313 bool suitableForGpuRasterization(const char** reason, int sampleCount) c
onst; |
315 | 314 |
316 bool fWillPlaybackBitmaps; | 315 bool fWillPlaybackBitmaps; |
| 316 bool fHasText; |
317 int fNumPaintWithPathEffectUses; | 317 int fNumPaintWithPathEffectUses; |
318 int fNumFastPathDashEffects; | 318 int fNumFastPathDashEffects; |
319 int fNumAAConcavePaths; | 319 int fNumAAConcavePaths; |
320 int fNumAAHairlineConcavePaths; | 320 int fNumAAHairlineConcavePaths; |
321 } const fAnalysis; | 321 } fAnalysis; |
322 }; | 322 }; |
323 | 323 |
324 #endif | 324 #endif |
OLD | NEW |