aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrSurfaceProxy.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-07-26 08:03:04 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-26 13:37:26 +0000
commit01a9128a6f8e8a18cce11de2891f4b2052035f53 (patch)
tree4bd0d5d457c03a70641d0278366c7ca1fb4cba47 /src/gpu/GrSurfaceProxy.cpp
parentb64db38b854bd8f6d564b7741ebf4795d130d168 (diff)
Maybe fix numStencilBits TSAN crash
Bug: skia:7390 Change-Id: Ied9c92147324ddb1245df796cd201df35657bbe0 Reviewed-on: https://skia-review.googlesource.com/143304 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrSurfaceProxy.cpp')
-rw-r--r--src/gpu/GrSurfaceProxy.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/GrSurfaceProxy.cpp b/src/gpu/GrSurfaceProxy.cpp
index 9e79ead801..14f535e0e9 100644
--- a/src/gpu/GrSurfaceProxy.cpp
+++ b/src/gpu/GrSurfaceProxy.cpp
@@ -416,7 +416,9 @@ bool GrSurfaceProxyPriv::doLazyInstantiation(GrResourceProvider* resourceProvide
? fProxy->asRenderTargetProxy()->needsStencil()
: false;
- GrSurfaceProxyPriv::AttachStencilIfNeeded(resourceProvider, surface.get(), needsStencil);
+ if (!GrSurfaceProxyPriv::AttachStencilIfNeeded(resourceProvider, surface.get(), needsStencil)) {
+ return false;
+ }
this->assign(std::move(surface));
return true;