diff options
author | 2017-09-04 01:47:11 -0600 | |
---|---|---|
committer | 2017-09-07 17:04:51 +0000 | |
commit | 60f42494f5d45c38e260ce089cdddfb600f799b2 (patch) | |
tree | f7c6235077d40c2cee2b703eb37cbe48b8350493 /src/gpu/ops/GrSmallPathRenderer.h | |
parent | 2bbdcc44c63974f29f3743bb58d929601a3f65c6 (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/ops/GrSmallPathRenderer.h')
-rw-r--r-- | src/gpu/ops/GrSmallPathRenderer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/ops/GrSmallPathRenderer.h b/src/gpu/ops/GrSmallPathRenderer.h index d10c4baa86..b958baa843 100644 --- a/src/gpu/ops/GrSmallPathRenderer.h +++ b/src/gpu/ops/GrSmallPathRenderer.h @@ -31,7 +31,7 @@ private: return GrPathRenderer::kNoSupport_StencilSupport; } - bool onCanDrawPath(const CanDrawPathArgs&) const override; + CanDrawPath onCanDrawPath(const CanDrawPathArgs&) const override; bool onDrawPath(const DrawPathArgs&) override; |