diff options
author | 2015-09-14 12:56:10 -0700 | |
---|---|---|
committer | 2015-09-14 12:56:10 -0700 | |
commit | ec00d94199fad7723b5987b86c1abef8ddafe2d8 (patch) | |
tree | 4161bb293ffe433cbe0fd41a4ad0263b36eedffd /src/gpu/GrDrawContext.cpp | |
parent | 37497dc9de9cf8df4f9dd972b50cbd35b9da6682 (diff) |
Move some of the adding stencil attachment logic of Gpu and into Render Target.
The new flow of calls for attaching a Stencil looks like:
Client
rt->attachStencilAttachment()
gpu->getStencilAttachment()
glgpu->createStencilAttachment()
glrt->completeStencilAttachment() //actually attaches
BUG=skia:
Review URL: https://codereview.chromium.org/1333383002
Diffstat (limited to 'src/gpu/GrDrawContext.cpp')
-rw-r--r-- | src/gpu/GrDrawContext.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp index 3d3be749d0..94fcee0313 100644 --- a/src/gpu/GrDrawContext.cpp +++ b/src/gpu/GrDrawContext.cpp @@ -63,7 +63,8 @@ GrTextContext* GrDrawContext::createTextContext(GrRenderTarget* renderTarget, if (fContext->caps()->shaderCaps()->pathRenderingSupport() && renderTarget->isStencilBufferMultisampled() && fSurfaceProps.isUseDeviceIndependentFonts()) { - GrStencilAttachment* sb = renderTarget->renderTargetPriv().attachStencilAttachment(); + GrStencilAttachment* sb = + fContext->resourceProvider()->attachStencilAttachment(renderTarget); if (sb) { return GrStencilAndCoverTextContext::Create(fContext, surfaceProps); } |