aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrGpuResource.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2016-11-14 13:31:14 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-11-14 19:04:47 +0000
commit286b96f876953c94c178e3abbeb4eab186ad1fef (patch)
tree47e473528643cdbe6227d7f1caa915d85a7605a1 /include/gpu/GrGpuResource.h
parentf171e1625bd3ea46c2980c97143168598d99987d (diff)
Add IORef capability to GrSurfaceProxy objects
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4734 Change-Id: If10fbe555e9fa3331bfa01065028e1afe82adb78 Reviewed-on: https://skia-review.googlesource.com/4734 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include/gpu/GrGpuResource.h')
-rw-r--r--include/gpu/GrGpuResource.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h
index 4597464f02..29d33df4bd 100644
--- a/include/gpu/GrGpuResource.h
+++ b/include/gpu/GrGpuResource.h
@@ -93,6 +93,8 @@ protected:
bool internalHasRef() const { return SkToBool(fRefCnt); }
private:
+ friend class GrIORefProxy; // needs to forward on wrapped IO calls
+
void addPendingRead() const {
this->validate();
++fPendingReads;