Index: src/gpu/GrPaint.cpp |
diff --git a/src/gpu/GrPaint.cpp b/src/gpu/GrPaint.cpp |
index f41469e08e3ef9ebbd64b314da960df0d097e208..fd78f9f8191cbab73aa7963034a2ad7ef879d496 100644 |
--- a/src/gpu/GrPaint.cpp |
+++ b/src/gpu/GrPaint.cpp |
@@ -19,36 +19,34 @@ GrPaint::GrPaint() |
, fColor(GrColor_WHITE) {} |
void GrPaint::setCoverageSetOpXPFactory(SkRegion::Op regionOp, bool invertCoverage) { |
- fXPFactory.reset(GrCoverageSetOpXPFactory::Create(regionOp, invertCoverage)); |
+ fXPFactory = GrCoverageSetOpXPFactory::Make(regionOp, invertCoverage); |
} |
void GrPaint::addColorTextureProcessor(GrTexture* texture, const SkMatrix& matrix) { |
- this->addColorFragmentProcessor(GrSimpleTextureEffect::Create(texture, matrix))->unref(); |
+ this->addColorFragmentProcessor(GrSimpleTextureEffect::Make(texture, matrix)); |
} |
void GrPaint::addCoverageTextureProcessor(GrTexture* texture, const SkMatrix& matrix) { |
- this->addCoverageFragmentProcessor(GrSimpleTextureEffect::Create(texture, matrix))->unref(); |
+ this->addCoverageFragmentProcessor(GrSimpleTextureEffect::Make(texture, matrix)); |
} |
void GrPaint::addColorTextureProcessor(GrTexture* texture, |
const SkMatrix& matrix, |
const GrTextureParams& params) { |
- this->addColorFragmentProcessor(GrSimpleTextureEffect::Create(texture, |
- matrix, params))->unref(); |
+ this->addColorFragmentProcessor(GrSimpleTextureEffect::Make(texture, matrix, params)); |
} |
void GrPaint::addCoverageTextureProcessor(GrTexture* texture, |
const SkMatrix& matrix, |
const GrTextureParams& params) { |
- this->addCoverageFragmentProcessor(GrSimpleTextureEffect::Create(texture, |
- matrix, params))->unref(); |
+ this->addCoverageFragmentProcessor(GrSimpleTextureEffect::Make(texture, matrix, params)); |
} |
bool GrPaint::isConstantBlendedColor(GrColor* color) const { |
GrProcOptInfo colorProcInfo; |
- colorProcInfo.calcWithInitialValues(fColorFragmentProcessors.begin(), |
- this->numColorFragmentProcessors(), fColor, |
- kRGBA_GrColorComponentFlags, false); |
+ colorProcInfo.calcWithInitialValues( |
+ sk_sp_address_as_pointer_address(fColorFragmentProcessors.begin()), |
+ this->numColorFragmentProcessors(), fColor, kRGBA_GrColorComponentFlags, false); |
GrXPFactory::InvariantBlendedColor blendedColor; |
if (fXPFactory) { |