aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-01-11 15:24:47 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-01-11 21:11:12 +0000
commitf046e15347373c20e42b1a25ecd87cbdb84de146 (patch)
tree721efd834b9aa33011692a54d30c5770220de939 /include/gpu
parent6ff51aedda6f3b4873c292d7e03e47ad656543f8 (diff)
Fix undefined GrIORef test method on Chrome win bot
Change-Id: Ifc3d7e285a4b1a0b370ec79963127490bd7b1a84 Reviewed-on: https://skia-review.googlesource.com/6896 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include/gpu')
-rw-r--r--include/gpu/GrGpuResource.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h
index 32376e524b..cc7e7aaa20 100644
--- a/include/gpu/GrGpuResource.h
+++ b/include/gpu/GrGpuResource.h
@@ -75,8 +75,6 @@ public:
#endif
}
- void testingOnly_getCounts(int* refCnt, int* readCnt, int* writeCnt) const;
-
protected:
GrIORef() : fRefCnt(1), fPendingReads(0), fPendingWrites(0) { }
@@ -96,6 +94,9 @@ protected:
private:
friend class GrIORefProxy; // needs to forward on wrapped IO calls
+ // This is for a unit test.
+ template <typename T>
+ friend void testingOnly_getIORefCnts(const T*, int* refCnt, int* readCnt, int* writeCnt);
void addPendingRead() const {
this->validate();