diff options
Diffstat (limited to 'include/core/SkPicture.h')
-rw-r--r-- | include/core/SkPicture.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h index 004f130621..f1ff19cc2e 100644 --- a/include/core/SkPicture.h +++ b/include/core/SkPicture.h @@ -305,7 +305,20 @@ private: SkAutoTDelete<SkRecord> fRecord; SkAutoTUnref<SkBBoxHierarchy> fBBH; - bool fRecordWillPlayBackBitmaps; // TODO: const + + struct Analysis { + // To get setup to work cleanly, we cast away constness and call init() + // instead of trying to set everything during construction. + void init(const SkRecord&); + + bool suitableForGpuRasterization(const char** reason, int sampleCount) const; + + bool fWillPlaybackBitmaps; + int fNumPaintWithPathEffectUses; + int fNumFastPathDashEffects; + int fNumAAConcavePaths; + int fNumAAHairlineConcavePaths; + } const fAnalysis; }; #endif |