From 294c32612d712eb56361ac5439271a91ae96862e Mon Sep 17 00:00:00 2001 From: jvanverth Date: Fri, 10 Oct 2014 11:36:12 -0700 Subject: 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 --- src/gpu/GrBitmapTextContext.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gpu/GrBitmapTextContext.h') 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 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*); -- cgit v1.2.3