From 493489054f85d1b7725412ad7a3cdc70c7ec5466 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Tue, 26 Jun 2018 09:12:38 -0400 Subject: Refactor GrPipeline dynamic state. Remove scissor rect from GrPipeline. Draws can specify "fixed dynamic state" which doesn't use the dynamism at all or can specify dynamic state arrays with an entry per GrMesh. When we state other than scissor rects this will allow the caller to use a mix of truly dynamic and fixed dynamic state. So a caller that only has dynamic scissor rects doesn't need to store its remaining unvarying state in an array. Change-Id: I8fcc07eb600c72a26cc712b185755c2116021a8a Reviewed-on: https://skia-review.googlesource.com/137223 Reviewed-by: Chris Dalton Commit-Queue: Brian Salomon --- samplecode/SampleCCPRGeometry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'samplecode') diff --git a/samplecode/SampleCCPRGeometry.cpp b/samplecode/SampleCCPRGeometry.cpp index f2f88bff45..13cc0a0690 100644 --- a/samplecode/SampleCCPRGeometry.cpp +++ b/samplecode/SampleCCPRGeometry.cpp @@ -359,7 +359,7 @@ void CCPRGeometryView::DrawCoverageCountOp::onExecute(GrOpFlushState* state) { if (!mesh.empty()) { SkASSERT(1 == mesh.count()); - proc.draw(state, pipeline, mesh.begin(), nullptr, 1, this->bounds()); + proc.draw(state, pipeline, nullptr, mesh.begin(), 1, this->bounds()); } if (glGpu) { -- cgit v1.2.3