diff options
author | 2014-10-10 08:21:29 -0700 | |
---|---|---|
committer | 2014-10-10 08:21:29 -0700 | |
commit | bc92163ddfe957ad6ffbb02ac40e0ba75ff82216 (patch) | |
tree | e7742e651b0df57016f0465cc54756567848fcaf /src/gpu/GrBitmapTextContext.h | |
parent | 6cb35fa46748ad50c1c2d941f5d1b2908539e64c (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
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*); |