diff options
author | Robert Phillips <robertphillips@google.com> | 2017-09-21 12:00:26 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-21 16:42:41 +0000 |
commit | c0192e346ccdcacedb4d4f1f53a85caa29b97a6f (patch) | |
tree | 34f79cc8cec58e1413c1e0c585f7222ffec0e0ad /src/gpu/GrResourceProvider.h | |
parent | 5fdbb8a8a76ec5c900bd373239bf4d42e33fb5a5 (diff) |
Remove pre-attachment of stencil buffers
Change-Id: I4ef555a2b36cf3a0ec74e0ecf7e8ab4f8779df3e
Reviewed-on: https://skia-review.googlesource.com/49740
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrResourceProvider.h')
-rw-r--r-- | src/gpu/GrResourceProvider.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/GrResourceProvider.h b/src/gpu/GrResourceProvider.h index 7be8ec1793..be06c8d63a 100644 --- a/src/gpu/GrResourceProvider.h +++ b/src/gpu/GrResourceProvider.h @@ -199,10 +199,10 @@ public: /** - * If passed in render target already has a stencil buffer, return it. Otherwise attempt to - * attach one. + * If passed in render target already has a stencil buffer, return true. Otherwise attempt to + * attach one and return true on success. */ - GrStencilAttachment* attachStencilAttachment(GrRenderTarget* rt); + bool attachStencilAttachment(GrRenderTarget* rt); /** * Wraps an existing texture with a GrRenderTarget object. This is useful when the provided |