aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRenderTarget.cpp
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-10-16 13:01:07 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-10-16 17:21:31 +0000
commitd28a79d49549568c3ebac36288ea3965496333f8 (patch)
treeea8c7f5337d596b92421c44070574b4cb0af3cc2 /src/gpu/GrRenderTarget.cpp
parent1bd76c468c2285b6484f58659641405bd4c3710a (diff)
Make GrResourceProvider more sk_spified
Change-Id: If191553093031705756358f4551a5b1e96439742 Reviewed-on: https://skia-review.googlesource.com/60000 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrRenderTarget.cpp')
-rw-r--r--src/gpu/GrRenderTarget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrRenderTarget.cpp b/src/gpu/GrRenderTarget.cpp
index e43c910fd0..585a5126a9 100644
--- a/src/gpu/GrRenderTarget.cpp
+++ b/src/gpu/GrRenderTarget.cpp
@@ -70,13 +70,13 @@ void GrRenderTarget::onAbandon() {
///////////////////////////////////////////////////////////////////////////////
-bool GrRenderTargetPriv::attachStencilAttachment(GrStencilAttachment* stencil) {
+bool GrRenderTargetPriv::attachStencilAttachment(sk_sp<GrStencilAttachment> stencil) {
if (!stencil && !fRenderTarget->fStencilAttachment) {
// No need to do any work since we currently don't have a stencil attachment and
// we're not actually adding one.
return true;
}
- fRenderTarget->fStencilAttachment = stencil;
+ fRenderTarget->fStencilAttachment = stencil.release();
if (!fRenderTarget->completeStencilAttachment()) {
SkSafeSetNull(fRenderTarget->fStencilAttachment);
return false;