diff options
author | 2016-07-07 07:33:13 -0700 | |
---|---|---|
committer | 2016-07-07 07:33:13 -0700 | |
commit | 3950f0d7239c05687ac96c211e49ceab9ab9ff4d (patch) | |
tree | 3e2cd5430b2f05f37ceda3b735a5ebb3924c037e /src/gpu/batches/GrStencilAndCoverPathRenderer.cpp | |
parent | 82356cc41f360c607a1612cb9aead2423c0846a0 (diff) |
Remove fColor from PathRenderer DrawPathArgs struct
This was getting in the way of other refactorings.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2126083002
Review-Url: https://codereview.chromium.org/2126083002
Diffstat (limited to 'src/gpu/batches/GrStencilAndCoverPathRenderer.cpp')
-rw-r--r-- | src/gpu/batches/GrStencilAndCoverPathRenderer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/batches/GrStencilAndCoverPathRenderer.cpp b/src/gpu/batches/GrStencilAndCoverPathRenderer.cpp index 4139629d14..5f98cfd15c 100644 --- a/src/gpu/batches/GrStencilAndCoverPathRenderer.cpp +++ b/src/gpu/batches/GrStencilAndCoverPathRenderer.cpp @@ -142,8 +142,8 @@ bool GrStencilAndCoverPathRenderer::onDrawPath(const DrawPathArgs& args) { const SkMatrix& viewM = viewMatrix.hasPerspective() ? SkMatrix::I() : viewMatrix; SkAutoTUnref<GrDrawBatch> coverBatch( - GrRectBatchFactory::CreateNonAAFill(args.fColor, viewM, bounds, nullptr, - &invert)); + GrRectBatchFactory::CreateNonAAFill(args.fPaint->getColor(), viewM, bounds, + nullptr, &invert)); { GrPipelineBuilder pipelineBuilder(*args.fPaint, @@ -165,7 +165,7 @@ bool GrStencilAndCoverPathRenderer::onDrawPath(const DrawPathArgs& args) { ); SkAutoTUnref<GrDrawBatch> batch( - GrDrawPathBatch::Create(viewMatrix, args.fColor, p->getFillType(), p)); + GrDrawPathBatch::Create(viewMatrix, args.fPaint->getColor(), p->getFillType(), p)); GrPipelineBuilder pipelineBuilder(*args.fPaint, args.fPaint->isAntiAlias()); pipelineBuilder.setUserStencil(&kCoverPass); |