diff options
author | 2018-06-26 09:12:38 -0400 | |
---|---|---|
committer | 2018-06-26 15:35:12 +0000 | |
commit | 493489054f85d1b7725412ad7a3cdc70c7ec5466 (patch) | |
tree | 45223f5039eefd3aba721d737cb70549baaa8d0d /src/gpu/gl/GrGLPathRendering.h | |
parent | d5506cb888858bd19fa54be50714a8d661cedf33 (diff) |
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 <csmartdalton@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/gl/GrGLPathRendering.h')
-rw-r--r-- | src/gpu/gl/GrGLPathRendering.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLPathRendering.h b/src/gpu/gl/GrGLPathRendering.h index 1dfb756f3e..74c5fcec9c 100644 --- a/src/gpu/gl/GrGLPathRendering.h +++ b/src/gpu/gl/GrGLPathRendering.h @@ -67,6 +67,7 @@ protected: void onStencilPath(const StencilPathArgs&, const GrPath*) override; void onDrawPath(const GrPrimitiveProcessor&, const GrPipeline&, + const GrPipeline::FixedDynamicState&, const GrStencilSettings&, const GrPath*) override; |