aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrSoftwarePathRenderer.h
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2017-09-04 01:47:11 -0600
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-07 17:04:51 +0000
commit60f42494f5d45c38e260ce089cdddfb600f799b2 (patch)
treef7c6235077d40c2cee2b703eb37cbe48b8350493 /src/gpu/GrSoftwarePathRenderer.h
parent2bbdcc44c63974f29f3743bb58d929601a3f65c6 (diff)
Improve GrPathRendererChain heuristics
Changes GrPathRenderer::canDrawPath to return a 'CanDrawPath' enum, which contains a new kAsBackup value that means "I'm better than SW, but give the path renderers below me a chance first." Bug: skia: Change-Id: I45aac5462ca1bc0bc839eb1c315db9493901a07e Reviewed-on: https://skia-review.googlesource.com/42222 Reviewed-by: Brian Osman <brianosman@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrSoftwarePathRenderer.h')
-rw-r--r--src/gpu/GrSoftwarePathRenderer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrSoftwarePathRenderer.h b/src/gpu/GrSoftwarePathRenderer.h
index 2421fa4d70..d36b2f6486 100644
--- a/src/gpu/GrSoftwarePathRenderer.h
+++ b/src/gpu/GrSoftwarePathRenderer.h
@@ -53,7 +53,7 @@ private:
return GrPathRenderer::kNoSupport_StencilSupport;
}
- bool onCanDrawPath(const CanDrawPathArgs&) const override;
+ CanDrawPath onCanDrawPath(const CanDrawPathArgs&) const override;
bool onDrawPath(const DrawPathArgs&) override;