aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrSurfaceProxyPriv.h
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-01-24 13:22:24 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-24 19:02:10 +0000
commitbddcc95383250940fce5491576a1636f3087cba9 (patch)
treea11eb20435b05a4092bbf9a30a668ee036333335 /src/gpu/GrSurfaceProxyPriv.h
parent5373aa2a6688d144803e175b72829d932e752fc6 (diff)
Add return value to doLazyInstantiation to know if it succeedes.
This allows us to return nullptr in places where we try to instantiate immediately and it fails. Bug: skia: Change-Id: Ic3da26b0e6270b3de114d80533f0580b4d6bf0e7 Reviewed-on: https://skia-review.googlesource.com/99381 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrSurfaceProxyPriv.h')
-rw-r--r--src/gpu/GrSurfaceProxyPriv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrSurfaceProxyPriv.h b/src/gpu/GrSurfaceProxyPriv.h
index b4811b68c8..2de820d625 100644
--- a/src/gpu/GrSurfaceProxyPriv.h
+++ b/src/gpu/GrSurfaceProxyPriv.h
@@ -68,7 +68,7 @@ public:
// Don't. Just don't.
void exactify();
- void doLazyInstantiation(GrResourceProvider*);
+ bool doLazyInstantiation(GrResourceProvider*);
static bool AttachStencilIfNeeded(GrResourceProvider*, GrSurface*, bool needsStencil);