diff options
author | 2014-10-10 11:36:12 -0700 | |
---|---|---|
committer | 2014-10-10 11:36:12 -0700 | |
commit | 294c32612d712eb56361ac5439271a91ae96862e (patch) | |
tree | 296fe453480d2c47365ff64a05d6e79aa04c657e /src/gpu/GrBitmapTextContext.h | |
parent | 71856d520461ae025a0332aa0ce9735a096d9baf (diff) |
Fix color emoji.
Removes the GrMaskFormat and single atlas in GrTextStrike.
Replaces it by storing the GrMaskFormat in each GrGlyph, and
doing a lookup for the correct atlas based on that.
Disables color glyph rendering in GrDistanceFieldTextContext
for now.
BUG=skia:2887
Committed: https://skia.googlesource.com/skia/+/bc92163ddfe957ad6ffbb02ac40e0ba75ff82216
Review URL: https://codereview.chromium.org/636183005
Diffstat (limited to 'src/gpu/GrBitmapTextContext.h')
-rw-r--r-- | src/gpu/GrBitmapTextContext.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gpu/GrBitmapTextContext.h b/src/gpu/GrBitmapTextContext.h index 4bff399ade..a9805cb0fb 100644 --- a/src/gpu/GrBitmapTextContext.h +++ b/src/gpu/GrBitmapTextContext.h @@ -40,13 +40,14 @@ private: GrTextStrike* fStrike; void* fVertices; - int32_t fMaxVertices; + int fCurrVertex; + int fMaxVertices; + SkRect fVertexBounds; GrTexture* fCurrTexture; + GrMaskFormat fCurrMaskFormat; SkAutoTUnref<GrGeometryProcessor> fCachedGeometryProcessor; // Used to check whether fCachedEffect is still valid. uint32_t fEffectTextureUniqueID; - int fCurrVertex; - SkRect fVertexBounds; void init(const GrPaint&, const SkPaint&); void appendGlyph(GrGlyph::PackedID, SkFixed left, SkFixed top, GrFontScaler*); |