From 715d08c381b4cc8af33d7dcdefc9533dcc97e4c9 Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Wed, 18 Jul 2018 13:56:48 -0400 Subject: Fix explicit allocation bug Change-Id: I9866f563e02b2ab290cc46ede05f8eda21f6d3b2 Reviewed-on: https://skia-review.googlesource.com/142163 Commit-Queue: Robert Phillips Reviewed-by: Brian Salomon --- include/private/GrSurfaceProxy.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/private/GrSurfaceProxy.h b/include/private/GrSurfaceProxy.h index 94626265ac..d69a294194 100644 --- a/include/private/GrSurfaceProxy.h +++ b/include/private/GrSurfaceProxy.h @@ -95,7 +95,6 @@ public: #endif } - int32_t getProxyRefCnt_TestOnly() const; int32_t getBackingRefCnt_TestOnly() const; int32_t getPendingReadCnt_TestOnly() const; int32_t getPendingWriteCnt_TestOnly() const; @@ -164,6 +163,10 @@ protected: fTarget->fPendingWrites += fPendingWrites; } + int32_t internalGetProxyRefCnt() const { + return fRefCnt; + } + bool internalHasPendingIO() const { if (fTarget) { return fTarget->internalHasPendingIO(); @@ -409,6 +412,10 @@ protected: friend class GrSurfaceProxyPriv; // Methods made available via GrSurfaceProxyPriv + int32_t getProxyRefCnt() const { + return this->internalGetProxyRefCnt(); + } + bool hasPendingIO() const { return this->internalHasPendingIO(); } -- cgit v1.2.3