aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-07-18 13:56:48 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-18 18:51:02 +0000
commit715d08c381b4cc8af33d7dcdefc9533dcc97e4c9 (patch)
tree328830165cfa268c5a6645e30088472836283a18 /include
parent946c37057f2618af7eda34fd6d2dd8625a9e9b61 (diff)
Fix explicit allocation bug
Change-Id: I9866f563e02b2ab290cc46ede05f8eda21f6d3b2 Reviewed-on: https://skia-review.googlesource.com/142163 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include')
-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();
}