From f8e2502819499894dff40c4f2f46e46edda15507 Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Wed, 8 Nov 2017 15:24:31 -0500 Subject: Prepare to enable explicit gpu resource allocation (take 2) Change-Id: I3fd78d53e8bea84c0217b9fe6e180eaa9e4ac753 Reviewed-on: https://skia-review.googlesource.com/68920 Reviewed-by: Greg Daniel Commit-Queue: Robert Phillips --- include/private/GrSurfaceProxy.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/private/GrSurfaceProxy.h') 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; -- cgit v1.2.3