Avoid assertion in MSAA rendering buffer about indexed draw with zero index count
authorBrian Salomon <bsalomon@google.com>
Tue, 9 May 2017 13:57:19 +0000 (09:57 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Tue, 9 May 2017 17:41:28 +0000 (17:41 +0000)
commit2a55c8ef495b5fd501a3dee7c199c9064ab7e6bc
tree12a21197f2de44d42a7d8fa0def89161412233e3
parent5c77975e4c00e18e644c72b56f369858acd11b15
Avoid assertion in MSAA rendering buffer about indexed draw with zero index count

Also add some GrMesh::validate() calls earlier to make future debugging easier. Previously this only asserted when the draws executed, now it asserts as soon as the draw is prepared in the op subclass.

Bug: skia:
Change-Id: Ibdd4488b9a9263f0ed337a2c8c6066bc36297001
Reviewed-on: https://skia-review.googlesource.com/16029
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
src/gpu/GrGpuCommandBuffer.cpp
src/gpu/ops/GrMSAAPathRenderer.cpp
src/gpu/ops/GrMeshDrawOp.cpp