Drawstate on stack
BUG=skia:
Review URL: https://codereview.chromium.org/732693002
diff --git a/src/gpu/GrPathRendererChain.cpp b/src/gpu/GrPathRendererChain.cpp
index 8108572..5c3f1c9 100644
--- a/src/gpu/GrPathRendererChain.cpp
+++ b/src/gpu/GrPathRendererChain.cpp
@@ -31,9 +31,10 @@
return pr;
}
-GrPathRenderer* GrPathRendererChain::getPathRenderer(const SkPath& path,
+GrPathRenderer* GrPathRendererChain::getPathRenderer(const GrDrawTarget* target,
+ const GrDrawState* drawState,
+ const SkPath& path,
const SkStrokeRec& stroke,
- const GrDrawTarget* target,
DrawType drawType,
StencilSupport* stencilSupport) {
if (!fInit) {
@@ -58,11 +59,12 @@
for (int i = 0; i < fChain.count(); ++i) {
- if (fChain[i]->canDrawPath(path, stroke, target, antiAlias)) {
+ if (fChain[i]->canDrawPath(target, drawState, path, stroke, antiAlias)) {
if (GrPathRenderer::kNoSupport_StencilSupport != minStencilSupport) {
- GrPathRenderer::StencilSupport support = fChain[i]->getStencilSupport(path,
- stroke,
- target);
+ GrPathRenderer::StencilSupport support = fChain[i]->getStencilSupport(target,
+ drawState,
+ path,
+ stroke);
if (support < minStencilSupport) {
continue;
} else if (stencilSupport) {