Index: gm/bigrrectaaeffect.cpp |
diff --git a/gm/bigrrectaaeffect.cpp b/gm/bigrrectaaeffect.cpp |
index 1036ed0dab3e702b5169df965e9be50f94deeda8..924704a5acec1dbfbf9bb78dae9d77e79b0faced 100644 |
--- a/gm/bigrrectaaeffect.cpp |
+++ b/gm/bigrrectaaeffect.cpp |
@@ -75,15 +75,14 @@ protected: |
canvas->drawRect(testBounds, paint); |
GrPipelineBuilder pipelineBuilder; |
- pipelineBuilder.setXPFactory( |
- GrPorterDuffXPFactory::Create(SkXfermode::kSrc_Mode))->unref(); |
+ pipelineBuilder.setXPFactory(GrPorterDuffXPFactory::Make(SkXfermode::kSrc_Mode)); |
SkRRect rrect = fRRect; |
rrect.offset(SkIntToScalar(x + kGap), SkIntToScalar(y + kGap)); |
- SkAutoTUnref<GrFragmentProcessor> fp(GrRRectEffect::Create(edgeType, rrect)); |
+ sk_sp<GrFragmentProcessor> fp(GrRRectEffect::Make(edgeType, rrect)); |
SkASSERT(fp); |
if (fp) { |
- pipelineBuilder.addCoverageFragmentProcessor(fp); |
+ pipelineBuilder.addCoverageFragmentProcessor(std::move(fp)); |
SkRect bounds = testBounds; |
bounds.offset(SkIntToScalar(x), SkIntToScalar(y)); |