Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Unified Diff: src/gpu/GrStencilAndCoverTextContext.h

Issue 759613005: Add color emoji fallback for nvpr text (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrStencilAndCoverTextContext.h
diff --git a/src/gpu/GrStencilAndCoverTextContext.h b/src/gpu/GrStencilAndCoverTextContext.h
index 88b4eec71a9894231f32c2f6c8d8ee7fbf9d45f6..1f608860edb83e39b5ebb5d28f661d69186e4cdc 100644
--- a/src/gpu/GrStencilAndCoverTextContext.h
+++ b/src/gpu/GrStencilAndCoverTextContext.h
@@ -57,11 +57,13 @@ private:
float fTextInverseRatio;
SkGlyphCache* fGlyphCache;
GrPathRange* fGlyphs;
- uint16_t fIndexBuffer[kGlyphBufferSize];
- float fTransformBuffer[2 * kGlyphBufferSize];
- int fPendingGlyphCount;
+ SkStrokeRec fStroke;
+ uint16_t fGlyphIndices[kGlyphBufferSize];
+ SkPoint fGlyphPositions[kGlyphBufferSize];
+ int fQueuedGlyphCount;
+ int fFallbackGlyphsIdx;
SkMatrix fContextInitialMatrix;
- bool fNeedsDeviceSpaceGlyphs;
+ bool fUsingDeviceSpaceGlyphs;
GrStencilAndCoverTextContext(GrContext*, const SkDeviceProperties&);
@@ -76,7 +78,8 @@ private:
const SkPoint& offset) SK_OVERRIDE;
void init(const GrPaint&, const SkPaint&, size_t textByteLength, RenderMode);
- void appendGlyph(uint16_t glyphID, float x, float y);
+ bool mapToFallbackContext(GrContext::AutoMatrix&, SkMatrix* inverse);
+ void appendGlyph(const SkGlyph&, const SkPoint&);
void flush();
void finish();

Powered by Google App Engine
This is Rietveld 408576698