aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/private/GrSurfaceProxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/private/GrSurfaceProxy.h')
-rw-r--r--include/private/GrSurfaceProxy.h9
1 files changed, 8 insertions, 1 deletions
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();
}