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:
parent
2c3e169183
commit
664cb9ebe5
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user