diff options
Diffstat (limited to 'src/gpu/GrPathRenderingDrawContext.cpp')
-rw-r--r-- | src/gpu/GrPathRenderingDrawContext.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gpu/GrPathRenderingDrawContext.cpp b/src/gpu/GrPathRenderingDrawContext.cpp index becffe0179..1380f7dc78 100644 --- a/src/gpu/GrPathRenderingDrawContext.cpp +++ b/src/gpu/GrPathRenderingDrawContext.cpp @@ -26,7 +26,8 @@ void GrPathRenderingDrawContext::drawText(const GrClip& clip, const GrPaint& gr GR_AUDIT_TRAIL_AUTO_FRAME(this->auditTrail(), "GrPathRenderingDrawContext::drawText"); if (!fStencilAndCoverTextContext) { - fStencilAndCoverTextContext.reset(GrStencilAndCoverTextContext::Create()); + GrAtlasTextContext* fallbackContext = this->drawingManager()->getAtlasTextContext(); + fStencilAndCoverTextContext.reset(GrStencilAndCoverTextContext::Create(fallbackContext)); } fStencilAndCoverTextContext->drawText(this->drawingManager()->getContext(), this, clip, grPaint, @@ -46,7 +47,8 @@ void GrPathRenderingDrawContext::drawPosText(const GrClip& clip, const GrPaint& GR_AUDIT_TRAIL_AUTO_FRAME(this->auditTrail(), "GrPathRenderingDrawContext::drawPosText"); if (!fStencilAndCoverTextContext) { - fStencilAndCoverTextContext.reset(GrStencilAndCoverTextContext::Create()); + GrAtlasTextContext* fallbackContext = this->drawingManager()->getAtlasTextContext(); + fStencilAndCoverTextContext.reset(GrStencilAndCoverTextContext::Create(fallbackContext)); } fStencilAndCoverTextContext->drawPosText(this->drawingManager()->getContext(), this, clip, @@ -65,7 +67,8 @@ void GrPathRenderingDrawContext::drawTextBlob(const GrClip& clip, const SkPaint& GR_AUDIT_TRAIL_AUTO_FRAME(this->auditTrail(), "GrPathRenderingDrawContext::drawTextBlob"); if (!fStencilAndCoverTextContext) { - fStencilAndCoverTextContext.reset(GrStencilAndCoverTextContext::Create()); + GrAtlasTextContext* fallbackContext = this->drawingManager()->getAtlasTextContext(); + fStencilAndCoverTextContext.reset(GrStencilAndCoverTextContext::Create(fallbackContext)); } fStencilAndCoverTextContext->drawTextBlob(this->drawingManager()->getContext(), this, clip, |