aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-11-08 13:34:43 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-08 19:06:17 +0000
commitf290376736b42a19b87da78c6ba2558313896860 (patch)
tree664ff0fb2802069f4373238a6127b287cc3db8a6 /include
parent47ba5cd0974273192c83cc27addb9ae1880c1d6d (diff)
Prepare to enable explicit gpu resource allocation
Change-Id: I407e45711c61831febbac3d3d3a88e3fdde92c5f Reviewed-on: https://skia-review.googlesource.com/68212 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/private/GrSurfaceProxy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/private/GrSurfaceProxy.h b/include/private/GrSurfaceProxy.h
index 0eccdce32c..23f62195c2 100644
--- a/include/private/GrSurfaceProxy.h
+++ b/include/private/GrSurfaceProxy.h
@@ -130,6 +130,7 @@ protected:
void transferRefs() {
SkASSERT(fTarget);
+ SkASSERT(fTarget->fRefCnt > 0);
fTarget->fRefCnt += (fRefCnt-1); // don't xfer the proxy's creation ref
fTarget->fPendingReads += fPendingReads;
fTarget->fPendingWrites += fPendingWrites;