diff options
author | Brian Salomon <bsalomon@google.com> | 2017-01-19 09:55:19 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-01-19 15:54:51 +0000 |
commit | 189098e70967c05c8810299b4afa325736a6565e (patch) | |
tree | 92fbe77322ba50e984f6d85870f40bad70ccacf4 /tools | |
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 'tools')
-rw-r--r-- | tools/gpu/GrTest.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/gpu/GrTest.cpp b/tools/gpu/GrTest.cpp index b1c179b32a..0760a4fd0e 100644 --- a/tools/gpu/GrTest.cpp +++ b/tools/gpu/GrTest.cpp @@ -257,9 +257,7 @@ void GrRenderTargetContextPriv::testingOnly_addDrawOp(GrPaint&& paint, if (uss) { pipelineBuilder.setUserStencil(uss); } - if (snapToCenters) { - pipelineBuilder.setState(GrPipelineBuilder::kSnapVerticesToPixelCenters_Flag, true); - } + pipelineBuilder.setSnapVerticesToPixelCenters(snapToCenters); fRenderTargetContext->getOpList()->addDrawOp(pipelineBuilder, fRenderTargetContext, GrNoClip(), std::move(op)); |