diff options
Diffstat (limited to 'tools/gpu/GrTest.cpp')
-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; } |