Trivial cleanup of copying GrPipelineBuilder
TBR=robertphillips@google.com
BUG=skia:
Review URL: https://codereview.chromium.org/1229983003
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp
index 76cfbf6..fa9c30e 100644
--- a/src/gpu/GrClipMaskManager.cpp
+++ b/src/gpu/GrClipMaskManager.cpp
@@ -842,24 +842,23 @@
// element directly or a bounding rect of the entire clip.
fClipMode = kModifyClip_StencilClipMode;
for (int p = 0; p < passes; ++p) {
- GrPipelineBuilder pipelineBuilderCopy(pipelineBuilder);
- *pipelineBuilderCopy.stencil() = stencilSettings[p];
+ *pipelineBuilder.stencil() = stencilSettings[p];
if (canDrawDirectToClip) {
if (Element::kRect_Type == element->getType()) {
// We need this AGP until everything is in GrBatch
- fClipTarget->drawSimpleRect(&pipelineBuilderCopy,
+ fClipTarget->drawSimpleRect(&pipelineBuilder,
GrColor_WHITE,
viewMatrix,
element->getRect());
} else {
- pr->drawPath(fClipTarget, &pipelineBuilderCopy, GrColor_WHITE,
+ pr->drawPath(fClipTarget, &pipelineBuilder, GrColor_WHITE,
viewMatrix, clipPath, stroke, false);
}
} else {
// The view matrix is setup to do clip space -> stencil space translation, so
// draw rect in clip space.
- fClipTarget->drawSimpleRect(&pipelineBuilderCopy,
+ fClipTarget->drawSimpleRect(&pipelineBuilder,
GrColor_WHITE,
viewMatrix,
SkRect::Make(clipSpaceIBounds));
diff --git a/src/gpu/GrSoftwarePathRenderer.cpp b/src/gpu/GrSoftwarePathRenderer.cpp
index d9b58a8..3d5bc3e 100644
--- a/src/gpu/GrSoftwarePathRenderer.cpp
+++ b/src/gpu/GrSoftwarePathRenderer.cpp
@@ -146,8 +146,7 @@
return false;
}
- GrPipelineBuilder copy = *pipelineBuilder;
- GrSWMaskHelper::DrawToTargetWithPathMask(texture, target, ©, color, viewMatrix,
+ GrSWMaskHelper::DrawToTargetWithPathMask(texture, target, pipelineBuilder, color, viewMatrix,
devPathBounds);
if (path.isInverseFillType()) {