aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpu.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-09-21 12:00:26 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-21 16:42:41 +0000
commitc0192e346ccdcacedb4d4f1f53a85caa29b97a6f (patch)
tree34f79cc8cec58e1413c1e0c585f7222ffec0e0ad /src/gpu/GrGpu.cpp
parent5fdbb8a8a76ec5c900bd373239bf4d42e33fb5a5 (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/GrGpu.cpp')
-rw-r--r--src/gpu/GrGpu.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp
index 72179bf354..c83d9828e8 100644
--- a/src/gpu/GrGpu.cpp
+++ b/src/gpu/GrGpu.cpp
@@ -192,18 +192,11 @@ sk_sp<GrTexture> GrGpu::wrapRenderableBackendTexture(const GrBackendTexture& bac
backendTex.height() > this->caps()->maxRenderTargetSize()) {
return nullptr;
}
- sk_sp<GrTexture> tex =
- this->onWrapRenderableBackendTexture(backendTex, sampleCnt, ownership);
+ sk_sp<GrTexture> tex = this->onWrapRenderableBackendTexture(backendTex, sampleCnt, ownership);
if (!tex) {
return nullptr;
}
SkASSERT(tex->asRenderTarget());
- if (!this->caps()->avoidStencilBuffers()) {
- // TODO: defer this and attach dynamically
- if (!fContext->resourceProvider()->attachStencilAttachment(tex->asRenderTarget())) {
- return nullptr;
- }
- }
return tex;
}