diff options
Diffstat (limited to 'src/gpu/GrDrawTarget.cpp')
-rw-r--r-- | src/gpu/GrDrawTarget.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp index bc373ba1f5..148dd199a3 100644 --- a/src/gpu/GrDrawTarget.cpp +++ b/src/gpu/GrDrawTarget.cpp @@ -830,6 +830,14 @@ void GrDrawTarget::drawNonIndexed(GrPrimitiveType type, } } +void GrDrawTarget::stencilPath(const GrPath& path, GrPathFill fill) { + // TODO: extract portions of checkDraw that are relevant to path stenciling. + GrAssert(fCaps.fPathStencilingSupport); + GrAssert(kHairLine_GrPathFill != fill); + GrAssert(!GrIsFillInverted(fill)); + this->onStencilPath(path, fill); +} + //////////////////////////////////////////////////////////////////////////////// // Some blend modes allow folding a partial coverage value into the color's |