Add GrOpsRenderPass::bindPipeline()
Clients now must call bindPipeline() before drawing.
Also renames GrOpsRenderPass::draw() to drawMeshes(), in order to
ensure every call site gets updated. drawMeshes() will soon be
replaced by individual calls for each draw type (indexed, instanced,
indexed-patterned, indirect, etc.).
Change-Id: I93ef579ded7d0048c5aa1bf1d7c0eb7bc1cd27b2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/270424
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
diff --git a/tests/GrPipelineDynamicStateTest.cpp b/tests/GrPipelineDynamicStateTest.cpp
index e62269b..a5ce0a2 100644
--- a/tests/GrPipelineDynamicStateTest.cpp
+++ b/tests/GrPipelineDynamicStateTest.cpp
@@ -169,8 +169,9 @@
nullptr,
&dynamicState, 0, GrPrimitiveType::kTriangleStrip);
- flushState->opsRenderPass()->draw(programInfo, meshes.begin(), 4,
- SkRect::MakeIWH(kScreenSize, kScreenSize));
+ flushState->opsRenderPass()->bindPipeline(programInfo,
+ SkRect::MakeIWH(kScreenSize, kScreenSize));
+ flushState->opsRenderPass()->drawMeshes(programInfo, meshes.begin(), 4);
}
GrScissorTest fScissorTest;