diff options
author | Chris Dalton <csmartdalton@google.com> | 2018-06-24 13:08:57 -0600 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-25 01:47:14 +0000 |
commit | a2b5b6467f347962e0d6942da0dff9148fbb3375 (patch) | |
tree | bca84406c7de1810fa2ce099fbf118e44df8c1e9 /tools/gpu | |
parent | ebf160f308b698c075c9c1cf8d65d40cb2486238 (diff) |
ccpr: Enable ccpr by default
Now that the path cache is implemented, we can use ccpr everywhere.
Modifies ccpr to not cache unless the "fAllowPathMaskCaching" context
option is enabled.
Adds a small condition to skip complicated paths with more vertices
than pixels, simply so we don't regress a couple testcases.
Updates skpbench to do three draws before starting the timer, in order
to prime the cache.
Bug: skia:
Change-Id: Ic3a0a2bdad8a22ff6431e77fa4da2b54d6bb9aba
Reviewed-on: https://skia-review.googlesource.com/137207
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'tools/gpu')
-rw-r--r-- | tools/gpu/GrTest.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/gpu/GrTest.cpp b/tools/gpu/GrTest.cpp index a827442cd0..7ec66bbd68 100644 --- a/tools/gpu/GrTest.cpp +++ b/tools/gpu/GrTest.cpp @@ -304,6 +304,14 @@ GrPixelConfig GrBackendRenderTarget::testingOnly_getPixelConfig() const { ////////////////////////////////////////////////////////////////////////////// + +void GrCoverageCountingPathRenderer::testingOnly_drawPathDirectly(const DrawPathArgs& args) { + // Call onDrawPath() directly: We want to test paths that might fail onCanDrawPath() simply for + // performance reasons, and GrPathRenderer::drawPath() assert that this call returns true. + // The test is responsible to not draw any paths that CCPR is not actually capable of. + this->onDrawPath(args); +} + const GrUniqueKey& GrCoverageCountingPathRenderer::testingOnly_getStashedAtlasKey() const { return fStashedAtlasKey; } |