aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPipeline.h
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-07-19 16:35:31 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-19 22:20:18 +0000
commit1635146864586cb7caaccdbfeb8ba4906bf80c67 (patch)
tree3714b3fc5d47d10c36f61ed0a03ef9cbec382ea3 /src/gpu/GrPipeline.h
parent04d488cf138e4d6935aa26f1e9f742b597c56cc7 (diff)
Make GrPipeline non-refcounted
GrPipelines are now created in GrOpFlushState's arena during GrOp::prepare() and cleaned up when the arena is destroyed. Change-Id: I2cc4f03ce130bfb22e9d28bb3c22c485113d5d53 Reviewed-on: https://skia-review.googlesource.com/24681 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrPipeline.h')
-rw-r--r--src/gpu/GrPipeline.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpu/GrPipeline.h b/src/gpu/GrPipeline.h
index 81b7923068..3a194d6f63 100644
--- a/src/gpu/GrPipeline.h
+++ b/src/gpu/GrPipeline.h
@@ -36,7 +36,7 @@ class GrRenderTargetContext;
* state for a draw. It is used along with a GrPrimitiveProcessor and a source of geometric
* data (GrMesh or GrPath) to draw.
*/
-class GrPipeline : public GrNonAtomicRef<GrPipeline> {
+class GrPipeline {
public:
///////////////////////////////////////////////////////////////////////////
/// @name Creation
@@ -109,6 +109,9 @@ public:
GrPipeline(const InitArgs& args) { this->init(args); }
+ GrPipeline(const GrPipeline&) = delete;
+ GrPipeline& operator=(const GrPipeline&) = delete;
+
/** (Re)initializes a pipeline. After initialization the pipeline can be used. */
void init(const InitArgs&);