Add pass-through helper methods from GrOpFlushState to GrOpsRenderPass
Change-Id: Ifa18e909978367a4502dbf6b35a62a437e83b5c2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/276842
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
diff --git a/src/gpu/GrOpsRenderPass.h b/src/gpu/GrOpsRenderPass.h
index b0dc9d6..dbbbe85 100644
--- a/src/gpu/GrOpsRenderPass.h
+++ b/src/gpu/GrOpsRenderPass.h
@@ -50,11 +50,9 @@
// Signals the end of recording to the GrOpsRenderPass and that it can now be submitted.
virtual void end() = 0;
- // Updates the internal pipeline state for drawing with the provided GrProgramInfo. If an
- // optional scissor rect is provided, then this method calls setScissor for convenience after
- // binding the pipeline. Enters an internal "bad" state if the pipeline could not be set.
- void bindPipeline(const GrProgramInfo&, const SkRect& drawBounds,
- const SkIRect* optionalScissorRect = nullptr);
+ // Updates the internal pipeline state for drawing with the provided GrProgramInfo. Enters an
+ // internal "bad" state if the pipeline could not be set.
+ void bindPipeline(const GrProgramInfo&, const SkRect& drawBounds);
// The scissor rect is always dynamic state and therefore not stored on GrPipeline. If scissor
// test is enabled on the current pipeline, then the client must call setScissorRect() before
@@ -74,11 +72,6 @@
void bindTextures(const GrPrimitiveProcessor&, const GrSurfaceProxy* const primProcTextures[],
const GrPipeline&);
- // This is a convenience overload for when the primitive processor has exactly one texture. It
- // binds one texture for the primitive processor, and any others for FPs on the pipeline.
- void bindTextures(const GrPrimitiveProcessor&, const GrSurfaceProxy& singlePrimProcTexture,
- const GrPipeline&);
-
void bindBuffers(const GrBuffer* indexBuffer, const GrBuffer* instanceBuffer,
const GrBuffer* vertexBuffer, GrPrimitiveRestart = GrPrimitiveRestart::kNo);