diff options
author | 2016-11-16 11:17:17 -0800 | |
---|---|---|
committer | 2016-11-16 11:17:17 -0800 | |
commit | 1125a030c726854f94fd2b8eed49d1323fc1d038 (patch) | |
tree | 56a26a60c160186a4cada83e904d0d3c60c25a6e /include/gpu/GrGpuResource.h | |
parent | 20079a94e82fd7345dfb119a8777e5ba482a041c (diff) |
Add IORef capability to GrSurfaceProxy objects - take 2
Re-landing of https://skia-review.googlesource.com/c/4734/ (Add IORef capability to GrSurfaceProxy objects) with fixes for:
platforms that don't support discards.
memory leak due to copying over of GrSurfaceProxy's creation ref to instantiated GrSurface in instantiate()
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4827
BUG=skia:
Change-Id: If0b695d5cafc5ef3fdd251c38262849d09e5d27f
Review-Url: https://codereview.chromium.org/2502923003
Diffstat (limited to 'include/gpu/GrGpuResource.h')
-rw-r--r-- | include/gpu/GrGpuResource.h | 2 |
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; |