aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-08-20 08:09:46 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-20 08:09:46 -0700
commitc551d9fcae98ff7b9d56f315947e89a26632aeec (patch)
treeb515fdcc21c1308772cefd2e3809dea653aa61e8 /include
parentf47dfed7a2f6f3007934224313b23a39a04a466d (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.h8
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