diff options
author | 2017-07-31 12:37:02 -0400 | |
---|---|---|
committer | 2017-07-31 16:59:53 +0000 | |
commit | 972b2f6041e0b591d9556fc874c24562733c50ce (patch) | |
tree | dd97768e34c2d2eba61d8e87d3f66cab07c82e6e /src/gpu/GrPipeline.h | |
parent | ba937a43669f606ea32de9b88e119f0507870c15 (diff) |
Initialize GrPipeline at construction.
Change-Id: I44bfa3553786ad197acdf807b15155e61d4e5952
Reviewed-on: https://skia-review.googlesource.com/28623
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrPipeline.h')
-rw-r--r-- | src/gpu/GrPipeline.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/gpu/GrPipeline.h b/src/gpu/GrPipeline.h index b4423049fb..6ff6360adb 100644 --- a/src/gpu/GrPipeline.h +++ b/src/gpu/GrPipeline.h @@ -96,25 +96,17 @@ public: }; /** - * A Default constructed pipeline is unusable until init() is called. - **/ - GrPipeline() = default; - - /** * Creates a simple pipeline with default settings and no processors. The provided blend mode * must be "Porter Duff" (<= kLastCoeffMode). If using ScissorState::kEnabled, the caller must * specify a scissor rectangle through the DynamicState struct. **/ GrPipeline(GrRenderTargetProxy*, ScissorState, SkBlendMode); - GrPipeline(const InitArgs& args) { this->init(args); } + GrPipeline(const InitArgs& 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&); - /** True if the pipeline has been initialized. */ bool isInitialized() const { return SkToBool(fProxy.get()); } |