| Index: src/gpu/GrClipMaskManager.cpp
|
| diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp
|
| index 654b315d527961b95a51403098d718656e484e67..56c0ee641b6613d1946cf32ebfff91b2c8e381f7 100644
|
| --- a/src/gpu/GrClipMaskManager.cpp
|
| +++ b/src/gpu/GrClipMaskManager.cpp
|
| @@ -85,7 +85,6 @@ bool GrClipMaskManager::PathNeedsSWRenderer(GrContext* context,
|
| if (path.isInverseFillType()) {
|
| path.toggleInverseFillType();
|
| }
|
| - GrStrokeInfo stroke(SkStrokeRec::kFill_InitStyle);
|
|
|
| GrPathRendererChain::DrawType type;
|
|
|
| @@ -103,7 +102,7 @@ bool GrClipMaskManager::PathNeedsSWRenderer(GrContext* context,
|
| canDrawArgs.fShaderCaps = context->caps()->shaderCaps();
|
| canDrawArgs.fViewMatrix = &viewMatrix;
|
| canDrawArgs.fPath = &path;
|
| - canDrawArgs.fStroke = &stroke;
|
| + canDrawArgs.fStyle = &GrStyle::SimpleFill();
|
| canDrawArgs.fAntiAlias = element->isAA();
|
| canDrawArgs.fIsStencilDisabled = isStencilDisabled;
|
| canDrawArgs.fIsStencilBufferMSAA = rt->isStencilBufferMultisampled();
|
| @@ -591,7 +590,7 @@ static void draw_element(GrDrawContext* dc,
|
| path.toggleInverseFillType();
|
| }
|
|
|
| - dc->drawPath(clip, paint, viewMatrix, path, GrStrokeInfo::FillInfo());
|
| + dc->drawPath(clip, paint, viewMatrix, path, GrStyle::SimpleFill());
|
| break;
|
| }
|
| }
|
| @@ -785,7 +784,6 @@ bool GrClipMaskManager::createStencilClipMask(GrRenderTarget* rt,
|
| // stencil with arbitrary stencil settings.
|
| GrPathRenderer::StencilSupport stencilSupport;
|
|
|
| - GrStrokeInfo stroke(SkStrokeRec::kFill_InitStyle);
|
| SkRegion::Op op = element->getOp();
|
|
|
| GrPathRenderer* pr = nullptr;
|
| @@ -806,7 +804,7 @@ bool GrClipMaskManager::createStencilClipMask(GrRenderTarget* rt,
|
| canDrawArgs.fShaderCaps = this->getContext()->caps()->shaderCaps();
|
| canDrawArgs.fViewMatrix = &viewMatrix;
|
| canDrawArgs.fPath = &clipPath;
|
| - canDrawArgs.fStroke = &stroke;
|
| + canDrawArgs.fStyle = &GrStyle::SimpleFill();
|
| canDrawArgs.fAntiAlias = false;
|
| canDrawArgs.fIsStencilDisabled = pipelineBuilder.getStencil().isDisabled();
|
| canDrawArgs.fIsStencilBufferMSAA = rt->isStencilBufferMultisampled();
|
| @@ -861,7 +859,7 @@ bool GrClipMaskManager::createStencilClipMask(GrRenderTarget* rt,
|
| args.fColor = GrColor_WHITE;
|
| args.fViewMatrix = &viewMatrix;
|
| args.fPath = &clipPath;
|
| - args.fStroke = &stroke;
|
| + args.fStyle = &GrStyle::SimpleFill();
|
| args.fAntiAlias = false;
|
| args.fGammaCorrect = false;
|
| pr->drawPath(args);
|
| @@ -896,7 +894,7 @@ bool GrClipMaskManager::createStencilClipMask(GrRenderTarget* rt,
|
| args.fColor = GrColor_WHITE;
|
| args.fViewMatrix = &viewMatrix;
|
| args.fPath = &clipPath;
|
| - args.fStroke = &stroke;
|
| + args.fStyle = &GrStyle::SimpleFill();
|
| args.fAntiAlias = false;
|
| args.fGammaCorrect = false;
|
| pr->drawPath(args);
|
| @@ -1100,7 +1098,6 @@ GrTexture* GrClipMaskManager::CreateSoftwareClipMask(GrContext* context,
|
|
|
| helper.init(maskSpaceIBounds, &translate, false);
|
| helper.clear(GrReducedClip::kAllIn_InitialState == initialState ? 0xFF : 0x00);
|
| - SkStrokeRec stroke(SkStrokeRec::kFill_InitStyle);
|
|
|
| for (GrReducedClip::ElementList::Iter iter(elements.headIter()) ; iter.get(); iter.next()) {
|
| const Element* element = iter.get();
|
| @@ -1119,7 +1116,8 @@ GrTexture* GrClipMaskManager::CreateSoftwareClipMask(GrContext* context,
|
| SkPath clipPath;
|
| element->asPath(&clipPath);
|
| clipPath.toggleInverseFillType();
|
| - helper.draw(clipPath, stroke, SkRegion::kReplace_Op, element->isAA(), 0x00);
|
| + helper.draw(clipPath, GrStyle::SimpleFill(), SkRegion::kReplace_Op, element->isAA(),
|
| + 0x00);
|
| continue;
|
| }
|
|
|
| @@ -1130,7 +1128,7 @@ GrTexture* GrClipMaskManager::CreateSoftwareClipMask(GrContext* context,
|
| } else {
|
| SkPath path;
|
| element->asPath(&path);
|
| - helper.draw(path, stroke, op, element->isAA(), 0xFF);
|
| + helper.draw(path, GrStyle::SimpleFill(), op, element->isAA(), 0xFF);
|
| }
|
| }
|
|
|
|
|