aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkGlyph.h
diff options
context:
space:
mode:
authorGravatar herb <herb@google.com>2015-09-09 12:16:09 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-09 12:16:10 -0700
commitbf2988833e5a36c6b430da6fdd2cfebd0015adec (patch)
tree685f14dbcb1d3fd3d5d1b46a7c23fba4923c4b58 /src/core/SkGlyph.h
parent7628967820994c383f2f01d1c64440488d5d8308 (diff)
Parallel cache.
Diffstat (limited to 'src/core/SkGlyph.h')
-rw-r--r--src/core/SkGlyph.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/SkGlyph.h b/src/core/SkGlyph.h
index c747995ed0..102088224d 100644
--- a/src/core/SkGlyph.h
+++ b/src/core/SkGlyph.h
@@ -47,6 +47,8 @@ class SkGlyph {
uint8_t fMaskFormat;
int8_t fRsbDelta, fLsbDelta; // used by auto-kerning
int8_t fForceBW;
+ mutable bool fImageIsSet;
+ mutable bool fPathIsSet;
void initWithGlyphID(uint32_t glyph_id) {
this->initCommon(MakeID(glyph_id));
@@ -135,6 +137,8 @@ class SkGlyph {
fPath = nullptr;
fMaskFormat = MASK_FORMAT_UNKNOWN;
fForceBW = 0;
+ fImageIsSet = false;
+ fPathIsSet = false;
}
static unsigned ID2Code(uint32_t id) {