Reland "Rename instanceAttribSupport -> drawInstancedSupport"
This is a reland of 17f05c737e44810cb043d781a9760b03f1cb719a
Original change's description:
> Rename instanceAttribSupport -> drawInstancedSupport
>
> Change-Id: I7d8ff8597849f2b910928867842857e25a12b4b1
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/281582
> Commit-Queue: Chris Dalton <csmartdalton@google.com>
> Reviewed-by: Brian Salomon <bsalomon@google.com>
TBR=bsalomon@google.com
Change-Id: I2e15ac72d86747c30e71bb50d30da48a5a342772
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/282118
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
diff --git a/src/gpu/GrOpsRenderPass.cpp b/src/gpu/GrOpsRenderPass.cpp
index 38cc0a1..8167363 100644
--- a/src/gpu/GrOpsRenderPass.cpp
+++ b/src/gpu/GrOpsRenderPass.cpp
@@ -65,7 +65,7 @@
// place (i.e., the target renderTargetProxy) they had best agree.
SkASSERT(programInfo.origin() == fOrigin);
if (programInfo.primProc().hasInstanceAttributes()) {
- SkASSERT(this->gpu()->caps()->instanceAttribSupport());
+ SkASSERT(this->gpu()->caps()->drawInstancedSupport());
}
if (programInfo.pipeline().usesConservativeRaster()) {
SkASSERT(this->gpu()->caps()->conservativeRasterSupport());
@@ -243,7 +243,7 @@
void GrOpsRenderPass::drawInstanced(int instanceCount, int baseInstance, int vertexCount,
int baseVertex) {
- SkASSERT(this->gpu()->caps()->instanceAttribSupport());
+ SkASSERT(this->gpu()->caps()->drawInstancedSupport());
if (!this->prepareToDraw()) {
return;
}
@@ -255,7 +255,7 @@
void GrOpsRenderPass::drawIndexedInstanced(int indexCount, int baseIndex, int instanceCount,
int baseInstance, int baseVertex) {
- SkASSERT(this->gpu()->caps()->instanceAttribSupport());
+ SkASSERT(this->gpu()->caps()->drawInstancedSupport());
if (!this->prepareToDraw()) {
return;
}