| Index: src/gpu/GrAtlasTextContext.cpp
|
| diff --git a/src/gpu/GrAtlasTextContext.cpp b/src/gpu/GrAtlasTextContext.cpp
|
| index 9b90f8ac414c8255720d4554a86141224a768533..bfe938131b7614aa073a5814e2247d1407c62868 100644
|
| --- a/src/gpu/GrAtlasTextContext.cpp
|
| +++ b/src/gpu/GrAtlasTextContext.cpp
|
| @@ -1838,15 +1838,12 @@ private:
|
|
|
| void flush(GrBatchTarget* batchTarget, FlushInfo* flushInfo) {
|
| GrVertices vertices;
|
| - int glyphsToFlush = flushInfo->fGlyphsToFlush;
|
| int maxGlyphsPerDraw = flushInfo->fIndexBuffer->maxQuads();
|
| vertices.initInstanced(kTriangles_GrPrimitiveType, flushInfo->fVertexBuffer,
|
| flushInfo->fIndexBuffer, flushInfo->fVertexOffset,
|
| - kVerticesPerGlyph, kIndicesPerGlyph, &glyphsToFlush,
|
| + kVerticesPerGlyph, kIndicesPerGlyph, flushInfo->fGlyphsToFlush,
|
| maxGlyphsPerDraw);
|
| - do {
|
| - batchTarget->draw(vertices);
|
| - } while (vertices.nextInstances(&glyphsToFlush, maxGlyphsPerDraw));
|
| + batchTarget->draw(vertices);
|
| flushInfo->fVertexOffset += kVerticesPerGlyph * flushInfo->fGlyphsToFlush;
|
| flushInfo->fGlyphsToFlush = 0;
|
| }
|
|
|