diff options
author | Brian Salomon <bsalomon@google.com> | 2017-08-09 16:02:19 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-09 20:42:45 +0000 |
commit | 91326c34ee1f1531d62caa153746821b58e6e55d (patch) | |
tree | 0d5ca763efa6807b1f352d9ae9bc0537f9ed12f1 /src/gpu/GrOpFlushState.h | |
parent | 6a14edc8d8762a54a174c2df1bee5715fc0a0526 (diff) |
Move GrProcessorSet into GrPipeline
Change-Id: Ibfa5e1adda3c32140590aa62a31d35654cef79dd
Reviewed-on: https://skia-review.googlesource.com/28187
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrOpFlushState.h')
-rw-r--r-- | src/gpu/GrOpFlushState.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gpu/GrOpFlushState.h b/src/gpu/GrOpFlushState.h index 4d1685638f..2c860f9b81 100644 --- a/src/gpu/GrOpFlushState.h +++ b/src/gpu/GrOpFlushState.h @@ -113,7 +113,7 @@ public: } template <typename... Args> - GrPipeline* allocPipeline(Args... args) { + GrPipeline* allocPipeline(Args&&... args) { return fPipelines.make<GrPipeline>(std::forward<Args>(args)...); } @@ -244,7 +244,7 @@ public: } template <typename... Args> - GrPipeline* allocPipeline(Args... args) { + GrPipeline* allocPipeline(Args&&... args) { return this->state()->allocPipeline(std::forward<Args>(args)...); } @@ -252,16 +252,15 @@ public: * Helper that makes a pipeline targeting the op's render target that incorporates the op's * GrAppliedClip. * */ - GrPipeline* makePipeline(uint32_t pipelineFlags, const GrProcessorSet* processorSet) { + GrPipeline* makePipeline(uint32_t pipelineFlags, GrProcessorSet&& processorSet) { GrPipeline::InitArgs pipelineArgs; pipelineArgs.fFlags = pipelineFlags; - pipelineArgs.fProcessors = processorSet; pipelineArgs.fProxy = this->proxy(); pipelineArgs.fAppliedClip = this->clip(); pipelineArgs.fDstProxy = this->dstProxy(); pipelineArgs.fCaps = &this->caps(); pipelineArgs.fResourceProvider = this->resourceProvider(); - return this->allocPipeline(pipelineArgs); + return this->allocPipeline(pipelineArgs, std::move(processorSet)); } private: |