Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: include/gpu/GrGpuResource.h

Issue 2502923003: Add IORef capability to GrSurfaceProxy objects - take 2 (Closed)
Patch Set: Fixed bug in transferRefs Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gn/tests.gni ('k') | include/private/GrSurfaceProxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrGpuResource.h
diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h
index 4597464f02d5b6725fa5820bff0a3eed66d99c16..29d33df4bdb824e0f982d3db038ea1d58b75a701 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;
« no previous file with comments | « gn/tests.gni ('k') | include/private/GrSurfaceProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698