| Index: src/gpu/GrDrawTarget.cpp
|
| diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp
|
| index ac0c766704bbeba9678e654c6549af8718222bde..adb6efda55240540737603d9018398328d49e6c6 100644
|
| --- a/src/gpu/GrDrawTarget.cpp
|
| +++ b/src/gpu/GrDrawTarget.cpp
|
| @@ -245,9 +245,9 @@ void GrDrawTarget::drawBatch(const GrPipelineBuilder& pipelineBuilder,
|
|
|
| // TODO: this is the only remaining usage of the AutoRestoreFragmentProcessorState - remove it
|
| GrPipelineBuilder::AutoRestoreFragmentProcessorState arfps;
|
| - if (appliedClip.clipCoverageFragmentProcessor()) {
|
| + if (appliedClip.getClipCoverageFragmentProcessor()) {
|
| arfps.set(&pipelineBuilder);
|
| - arfps.addCoverageFragmentProcessor(appliedClip.clipCoverageFragmentProcessor());
|
| + arfps.addCoverageFragmentProcessor(sk_ref_sp(appliedClip.getClipCoverageFragmentProcessor()));
|
| }
|
|
|
| GrPipeline::CreateArgs args;
|
| @@ -330,7 +330,7 @@ void GrDrawTarget::stencilPath(const GrPipelineBuilder& pipelineBuilder,
|
|
|
| // Coverage AA does not make sense when rendering to the stencil buffer. The caller should never
|
| // attempt this in a situation that would require coverage AA.
|
| - SkASSERT(!appliedClip.clipCoverageFragmentProcessor());
|
| + SkASSERT(!appliedClip.getClipCoverageFragmentProcessor());
|
|
|
| GrStencilAttachment* stencilAttachment = fResourceProvider->attachStencilAttachment(
|
| drawContext->accessRenderTarget());
|
| @@ -379,8 +379,7 @@ void GrDrawTarget::clear(const SkIRect* rect,
|
|
|
| // TODO: flip this into real draw!
|
| GrPipelineBuilder pipelineBuilder;
|
| - pipelineBuilder.setXPFactory(
|
| - GrPorterDuffXPFactory::Create(SkXfermode::kSrc_Mode))->unref();
|
| + pipelineBuilder.setXPFactory(GrPorterDuffXPFactory::Make(SkXfermode::kSrc_Mode));
|
|
|
| SkRect scalarRect = SkRect::Make(*rect);
|
| SkAutoTUnref<GrDrawBatch> batch(
|
|
|