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

Unified Diff: src/gpu/GrStencilAndCoverTextContext.h

Issue 1315563003: GrPathRangeBatch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix init order warning Created 5 years, 3 months 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
« no previous file with comments | « src/gpu/GrReorderCommandBuilder.h ('k') | src/gpu/GrStencilAndCoverTextContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrStencilAndCoverTextContext.h
diff --git a/src/gpu/GrStencilAndCoverTextContext.h b/src/gpu/GrStencilAndCoverTextContext.h
index 295e958036fc4682c24c354b336ec747f33ce267..4c57d3cb81d251227ebc959b027515562a3027fc 100644
--- a/src/gpu/GrStencilAndCoverTextContext.h
+++ b/src/gpu/GrStencilAndCoverTextContext.h
@@ -15,6 +15,7 @@
class GrTextStrike;
class GrPath;
class GrPathRange;
+class GrPathRangeDraw;
class SkSurfaceProps;
/*
@@ -29,8 +30,6 @@ public:
virtual ~GrStencilAndCoverTextContext();
private:
- static const int kGlyphBufferSize = 1024;
-
enum RenderMode {
/**
* This is the render mode used by drawText(), which is mainly used by
@@ -55,12 +54,13 @@ private:
SkScalar fTextRatio;
float fTextInverseRatio;
SkGlyphCache* fGlyphCache;
+
GrPathRange* fGlyphs;
+ GrPathRangeDraw* fDraw;
GrStrokeInfo fStroke;
- uint16_t fGlyphIndices[kGlyphBufferSize];
- SkPoint fGlyphPositions[kGlyphBufferSize];
- int fQueuedGlyphCount;
- int fFallbackGlyphsIdx;
+ SkSTArray<32, uint16_t, true> fFallbackIndices;
+ SkSTArray<32, SkPoint, true> fFallbackPositions;
+
SkMatrix fContextInitialMatrix;
SkMatrix fViewMatrix;
SkMatrix fLocalMatrix;
@@ -92,10 +92,11 @@ private:
size_t textByteLength, RenderMode, const SkMatrix& viewMatrix,
const SkIRect& regionClipBounds);
bool mapToFallbackContext(SkMatrix* inverse);
- void appendGlyph(GrDrawContext* dc, const SkGlyph&, const SkPoint&);
+ void appendGlyph(const SkGlyph&, const SkPoint&);
void flush(GrDrawContext* dc);
void finish(GrDrawContext* dc);
+ typedef GrTextContext INHERITED;
};
#endif
« no previous file with comments | « src/gpu/GrReorderCommandBuilder.h ('k') | src/gpu/GrStencilAndCoverTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698