diff options
author | 2017-01-19 09:55:19 -0500 | |
---|---|---|
committer | 2017-01-19 15:54:51 +0000 | |
commit | 189098e70967c05c8810299b4afa325736a6565e (patch) | |
tree | 92fbe77322ba50e984f6d85870f40bad70ccacf4 /src/gpu/GrRenderTargetContext.cpp | |
parent | 52b346e34dc948aeea4ddede0a256bb673ff4a7e (diff) |
Don't require GrPipelineBuilder to build GrPipeline
Change-Id: Ic978913aa9dd0811eac102755934d77b4853a568
Reviewed-on: https://skia-review.googlesource.com/7207
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrRenderTargetContext.cpp')
-rw-r--r-- | src/gpu/GrRenderTargetContext.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gpu/GrRenderTargetContext.cpp b/src/gpu/GrRenderTargetContext.cpp index 39d5597ab6..0dd7d97da3 100644 --- a/src/gpu/GrRenderTargetContext.cpp +++ b/src/gpu/GrRenderTargetContext.cpp @@ -660,12 +660,7 @@ void GrRenderTargetContext::drawRect(const GrClip& clip, if (op) { GrPipelineBuilder pipelineBuilder(std::move(paint), aaType); - - if (snapToPixelCenters) { - pipelineBuilder.setState(GrPipelineBuilder::kSnapVerticesToPixelCenters_Flag, - snapToPixelCenters); - } - + pipelineBuilder.setSnapVerticesToPixelCenters(snapToPixelCenters); this->getOpList()->addDrawOp(pipelineBuilder, this, clip, std::move(op)); return; } |