Index: src/gpu/GrClipMaskManager.cpp |
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp |
index 0f32839a7e1e6df3a3cbc9cceb1b7480c62bdac2..0ab1600b7d114ebafefd92069429e71e16b9e75f 100644 |
--- a/src/gpu/GrClipMaskManager.cpp |
+++ b/src/gpu/GrClipMaskManager.cpp |
@@ -717,7 +717,8 @@ bool GrClipMaskManager::createStencilClipMask(GrRenderTarget* rt, |
SkASSERT(kNone_ClipMaskType == fCurrClipMaskType); |
SkASSERT(rt); |
- GrStencilAttachment* stencilAttachment = rt->renderTargetPriv().attachStencilAttachment(); |
+ GrStencilAttachment* stencilAttachment = |
+ fDrawTarget->cmmAccess().resourceProvider()->attachStencilAttachment(rt); |
if (nullptr == stencilAttachment) { |
return false; |
} |
@@ -977,7 +978,8 @@ void GrClipMaskManager::setPipelineBuilderStencil(const GrPipelineBuilder& pipel |
int stencilBits = 0; |
GrRenderTarget* rt = pipelineBuilder.getRenderTarget(); |
- GrStencilAttachment* stencilAttachment = rt->renderTargetPriv().attachStencilAttachment(); |
+ GrStencilAttachment* stencilAttachment = |
+ fDrawTarget->cmmAccess().resourceProvider()->attachStencilAttachment(rt); |
if (stencilAttachment) { |
stencilBits = stencilAttachment->bits(); |
} |