| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2007 The Android Open Source Project | 2 * Copyright 2007 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 | 8 |
| 9 #ifndef SkPicture_DEFINED | 9 #ifndef SkPicture_DEFINED |
| 10 #define SkPicture_DEFINED | 10 #define SkPicture_DEFINED |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 SkPicture const* const* drawablePicts() const; | 285 SkPicture const* const* drawablePicts() const; |
| 286 | 286 |
| 287 struct PathCounter; | 287 struct PathCounter; |
| 288 | 288 |
| 289 struct Analysis { | 289 struct Analysis { |
| 290 Analysis() {} // Only used by SkPictureData codepath. | 290 Analysis() {} // Only used by SkPictureData codepath. |
| 291 explicit Analysis(const SkRecord&); | 291 explicit Analysis(const SkRecord&); |
| 292 | 292 |
| 293 bool suitableForGpuRasterization(const char** reason, int sampleCount) c
onst; | 293 bool suitableForGpuRasterization(const char** reason, int sampleCount) c
onst; |
| 294 | 294 |
| 295 bool fWillPlaybackBitmaps; | 295 uint8_t fNumSlowPathsAndDashEffects; |
| 296 bool fHasText; | 296 bool fWillPlaybackBitmaps : 1; |
| 297 int fNumPaintWithPathEffectUses; | 297 bool fHasText : 1; |
| 298 int fNumFastPathDashEffects; | |
| 299 int fNumAAConcavePaths; | |
| 300 int fNumAAHairlineConcavePaths; | |
| 301 int fNumAADFEligibleConcavePaths; | |
| 302 } fAnalysis; | 298 } fAnalysis; |
| 303 | 299 |
| 304 friend class SkPictureRecorder; // SkRecord-based constructor. | 300 friend class SkPictureRecorder; // SkRecord-based constructor. |
| 305 friend class GrLayerHoister; // access to fRecord | 301 friend class GrLayerHoister; // access to fRecord |
| 306 friend class ReplaceDraw; | 302 friend class ReplaceDraw; |
| 307 friend class SkPictureUtils; | 303 friend class SkPictureUtils; |
| 308 friend class SkRecordedDrawable; | 304 friend class SkRecordedDrawable; |
| 309 }; | 305 }; |
| 310 SK_COMPILE_ASSERT(sizeof(SkPicture) <= 104, SkPictureSize); | 306 SK_COMPILE_ASSERT(sizeof(SkPicture) <= 88, SkPictureSize); |
| 311 | 307 |
| 312 #endif | 308 #endif |
| OLD | NEW |