diff options
author | bsalomon <bsalomon@google.com> | 2015-05-05 09:51:38 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-05 09:51:38 -0700 |
commit | cb8979d088a66ebaf41f10ba6f5c830615aa0e03 (patch) | |
tree | 1493797ba71ecb94c3d7ebfb78e4fc6222dce778 /src/gpu/GrAADistanceFieldPathRenderer.cpp | |
parent | e46760e8b2b2fc4a11a43a3b7cc9da7166c83c46 (diff) |
Move DrawInfo out from GrDrawTarget and rename to GrVertices.
Review URL: https://codereview.chromium.org/1124733004
Diffstat (limited to 'src/gpu/GrAADistanceFieldPathRenderer.cpp')
-rwxr-xr-x | src/gpu/GrAADistanceFieldPathRenderer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrAADistanceFieldPathRenderer.cpp b/src/gpu/GrAADistanceFieldPathRenderer.cpp index 312b731fd7..7c0468d933 100755 --- a/src/gpu/GrAADistanceFieldPathRenderer.cpp +++ b/src/gpu/GrAADistanceFieldPathRenderer.cpp @@ -507,15 +507,15 @@ private: } void flush(GrBatchTarget* batchTarget, FlushInfo* flushInfo) { - GrDrawTarget::DrawInfo drawInfo; + GrVertices vertices; int instancesToFlush = flushInfo->fInstancesToFlush; int maxInstancesPerDraw = flushInfo->fIndexBuffer->maxQuads(); - drawInfo.initInstanced(kTriangles_GrPrimitiveType, flushInfo->fVertexBuffer, + vertices.initInstanced(kTriangles_GrPrimitiveType, flushInfo->fVertexBuffer, flushInfo->fIndexBuffer, flushInfo->fVertexOffset, kVerticesPerQuad, kIndicesPerQuad, &instancesToFlush, maxInstancesPerDraw); do { - batchTarget->draw(drawInfo); - } while (drawInfo.nextInstances(&instancesToFlush, maxInstancesPerDraw)); + batchTarget->draw(vertices); + } while (vertices.nextInstances(&instancesToFlush, maxInstancesPerDraw)); flushInfo->fVertexOffset += kVerticesPerQuad * flushInfo->fInstancesToFlush; flushInfo->fInstancesToFlush = 0; } |