diff options
Diffstat (limited to 'include/private/GrSurfaceProxyRef.h')
-rw-r--r-- | include/private/GrSurfaceProxyRef.h | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/include/private/GrSurfaceProxyRef.h b/include/private/GrSurfaceProxyRef.h index 38d5827614..fb2ed3746a 100644 --- a/include/private/GrSurfaceProxyRef.h +++ b/include/private/GrSurfaceProxyRef.h @@ -15,7 +15,17 @@ class GrSurfaceProxy; class GrSurfaceProxyRef : SkNoncopyable { public: - virtual ~GrSurfaceProxyRef(); + GrSurfaceProxyRef(); + + /** ioType expresses what type of IO operations will be marked as + pending on the resource when markPendingIO is called. */ + GrSurfaceProxyRef(sk_sp<GrSurfaceProxy>, GrIOType); + + ~GrSurfaceProxyRef(); + + /** ioType expresses what type of IO operations will be marked as + pending on the resource when markPendingIO is called. */ + void setProxy(sk_sp<GrSurfaceProxy>, GrIOType); GrSurfaceProxy* get() const { return fProxy; } @@ -30,18 +40,6 @@ public: is called. */ void reset(); -protected: - GrSurfaceProxyRef(); - - /** ioType expresses what type of IO operations will be marked as - pending on the resource when markPendingIO is called. */ - GrSurfaceProxyRef(sk_sp<GrSurfaceProxy>, GrIOType); - - /** ioType expresses what type of IO operations will be marked as - pending on the resource when markPendingIO is called. */ - void setProxy(sk_sp<GrSurfaceProxy>, GrIOType); - -private: /** Called by owning GrProgramElement when the program element is first scheduled for execution. It can only be called once. */ void markPendingIO() const; @@ -58,9 +56,7 @@ private: called. */ void pendingIOComplete() const; - friend class GrResourceIOProcessor; - friend class GrOpList; // for setProxy - +private: GrSurfaceProxy* fProxy; mutable bool fOwnRef; mutable bool fPendingIO; |