Call incNumDraws() after all draw calls in mtl

Change-Id: I4f97a86a168daa623185931c289f3dc40fdc3d91
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/278264
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
This commit is contained in:
Chris Dalton 2020-03-20 12:35:50 -06:00 committed by Skia Commit-Bot
parent 2c3e169183
commit 664cb9ebe5

View File

@ -277,6 +277,7 @@ void GrMtlOpsRenderPass::onDraw(int vertexCount, int baseVertex) {
[fActiveRenderCmdEncoder drawPrimitives:fActivePrimitiveType
vertexStart:baseVertex
vertexCount:vertexCount];
fGpu->stats()->incNumDraws();
}
void GrMtlOpsRenderPass::onDrawIndexed(int indexCount, int baseIndex, uint16_t minIndexValue,
@ -312,6 +313,7 @@ void GrMtlOpsRenderPass::onDrawInstanced(int instanceCount, int baseInstance, in
} else {
SkASSERT(false);
}
fGpu->stats()->incNumDraws();
}
void GrMtlOpsRenderPass::onDrawIndexedInstanced(