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