diff options
author | Brian Salomon <bsalomon@google.com> | 2018-07-31 13:53:11 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-31 18:16:11 +0000 |
commit | e782f8472f61a5a553c57fef788ad4405844887b (patch) | |
tree | c987b012c7b7db78ce0764a46c9281c23409eb07 /include | |
parent | 990ec990a66aab06bfa18aa16a5e3960a4b34118 (diff) |
Remove GrResourceIOProcessor.
Fold its functionality into GrPrimitiveProcessor and GrFragmentProcessor.
Make each have its own TextureSampler nested class. Currently the only
difference is that fragment processors lose the ability to inject their
samplers into the vertex shader. However, this facilitates refactoring
GrPrimitiveProcessor's TextureSampler class such that the textures are
specified separately from the TextureSampler.
Bug: skia:
Change-Id: I1e590187e7a6ae79ee3147155d397fcdcf5e4619
Reviewed-on: https://skia-review.googlesource.com/142814
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include')
-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; |