diff options
author | Robert Phillips <robertphillips@google.com> | 2017-05-11 14:14:30 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-11 19:44:39 +0000 |
commit | b6deea8f0ed61475382fc48c7359118bfdcbff85 (patch) | |
tree | b06cb1b81f0c5cb9f0aa92e85207c6059f9e18cb /include/gpu/GrGpuResourceRef.h | |
parent | ce5e326016f7ade56afc2381e0f951b6c2ebc779 (diff) |
Setup for another attempt to split up opLists
Split out of: https://skia-review.googlesource.com/c/14186 (Split up opLists (take 3))
Change-Id: Ifa600c88fb9185991d3197c7776c820f54c9bf0f
Reviewed-on: https://skia-review.googlesource.com/16540
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/gpu/GrGpuResourceRef.h')
-rw-r--r-- | include/gpu/GrGpuResourceRef.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/include/gpu/GrGpuResourceRef.h b/include/gpu/GrGpuResourceRef.h index f82b502574..ca1b55a2ed 100644 --- a/include/gpu/GrGpuResourceRef.h +++ b/include/gpu/GrGpuResourceRef.h @@ -89,13 +89,13 @@ private: typedef SkNoncopyable INHERITED; }; -class GrTextureProxy; +class GrSurfaceProxy; -class GrTextureProxyRef : SkNoncopyable { +class GrSurfaceProxyRef : SkNoncopyable { public: - virtual ~GrTextureProxyRef(); + virtual ~GrSurfaceProxyRef(); - GrTextureProxy* getProxy() const { return fProxy; } + GrSurfaceProxy* getProxy() const { return fProxy; } /** Does this object own a pending read or write on the resource it is wrapping. */ bool ownsPendingIO() const { return fPendingIO; } @@ -109,15 +109,15 @@ public: void reset(); protected: - GrTextureProxyRef(); + GrSurfaceProxyRef(); /** ioType expresses what type of IO operations will be marked as pending on the resource when markPendingIO is called. */ - GrTextureProxyRef(sk_sp<GrTextureProxy>, GrIOType); + 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<GrTextureProxy>, GrIOType); + void setProxy(sk_sp<GrSurfaceProxy>, GrIOType); private: /** Called by owning GrProgramElement when the program element is first scheduled for @@ -137,8 +137,9 @@ private: void pendingIOComplete() const; friend class GrResourceIOProcessor; + friend class GrOpList; // for setProxy - GrTextureProxy* fProxy; + GrSurfaceProxy* fProxy; mutable bool fOwnRef; mutable bool fPendingIO; GrIOType fIOType; |