diff options
author | 2017-05-03 14:36:54 -0400 | |
---|---|---|
committer | 2017-05-03 19:08:40 +0000 | |
commit | ff926502069d0ddafaecc18dc08973762e4befd2 (patch) | |
tree | 5c8c4335c6a3b71006ce2e3646987930ecb2e28e /tests | |
parent | 85591831b2fc0f67968116d73c79ee1232a59935 (diff) |
Convert GrMesh to a struct
Converts GrMesh to a struct and changes the names/semantics of its
fields to be more inline with their GL counterparts. Also renames the
"instancing" feature to "pattern", to avoid ambiguity with hardware
instancing.
Bug: skia:
Change-Id: Ia0999d4f9c83b5dd31f81b9bf4f36ed9abd26286
Reviewed-on: https://skia-review.googlesource.com/15157
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PreFlushCallbackTest.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/PreFlushCallbackTest.cpp b/tests/PreFlushCallbackTest.cpp index da7f93b583..fc736a4647 100644 --- a/tests/PreFlushCallbackTest.cpp +++ b/tests/PreFlushCallbackTest.cpp @@ -145,10 +145,13 @@ private: } GrMesh mesh; - mesh.initIndexed(kTriangles_GrPrimitiveType, - vertexBuffer, indexBuffer, - firstVertex, firstIndex, - 4, 6); + mesh.fPrimitiveType = kTriangles_GrPrimitiveType; + mesh.fIndexBuffer.reset(indexBuffer); + mesh.fIndexCount = 6; + mesh.fBaseIndex = firstIndex; + mesh.fVertexBuffer.reset(vertexBuffer); + mesh.fVertexCount = 4; + mesh.fBaseVertex = firstVertex; target->draw(gp.get(), this->pipeline(), mesh); } |