diff options
author | 2017-07-19 16:35:31 -0400 | |
---|---|---|
committer | 2017-07-19 22:20:18 +0000 | |
commit | 1635146864586cb7caaccdbfeb8ba4906bf80c67 (patch) | |
tree | 3714b3fc5d47d10c36f61ed0a03ef9cbec382ea3 /src/gpu/GrPipeline.h | |
parent | 04d488cf138e4d6935aa26f1e9f742b597c56cc7 (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.h | 5 |
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&); |