diff options
author | Chris Dalton <csmartdalton@google.com> | 2017-09-07 13:22:46 -0600 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-07 22:18:53 +0000 |
commit | 5ed4423090e63e4c7888d6dd44fde177adea13f3 (patch) | |
tree | 83a3f92bc0630a8777d08bd9da1a097c82943b14 /src/gpu/GrSoftwarePathRenderer.h | |
parent | 2199e0bc7cbd2c834a93ab2cc83ee1bfdd79a0ed (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: Ia339567800a3127e61b9beaed19504cd504f18af
Reviewed-on: https://skia-review.googlesource.com/43761
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrSoftwarePathRenderer.h')
-rw-r--r-- | src/gpu/GrSoftwarePathRenderer.h | 2 |
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; |