diff options
author | mtklein <mtklein@chromium.org> | 2014-08-20 08:09:46 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-20 08:09:46 -0700 |
commit | c551d9fcae98ff7b9d56f315947e89a26632aeec (patch) | |
tree | b515fdcc21c1308772cefd2e3809dea653aa61e8 /include | |
parent | f47dfed7a2f6f3007934224313b23a39a04a466d (diff) |
Implement SkPicture::hasText() for SkRecord backend.
Plus, some small tweaks to the existing code surrounding it. Just proposals,
will undo whatever you don't like.
BUG=skia:
R=mtklein@google.com, tomhudson@google.com, reed@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/494683003
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPicture.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h index f1ff19cc2e..06cc6e2b07 100644 --- a/include/core/SkPicture.h +++ b/include/core/SkPicture.h @@ -307,18 +307,18 @@ private: SkAutoTUnref<SkBBoxHierarchy> fBBH; 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&); + Analysis() {} // Only used by SkPictureData codepath. + explicit Analysis(const SkRecord&); bool suitableForGpuRasterization(const char** reason, int sampleCount) const; bool fWillPlaybackBitmaps; + bool fHasText; int fNumPaintWithPathEffectUses; int fNumFastPathDashEffects; int fNumAAConcavePaths; int fNumAAHairlineConcavePaths; - } const fAnalysis; + } fAnalysis; }; #endif |