Index: gm/rrects.cpp |
diff --git a/gm/rrects.cpp b/gm/rrects.cpp |
index 5f28c9e4a233c2e270f33c2d1a9bbdb6bf007031..e104aea4335259769f08d5f90c871f91ba9f9443 100644 |
--- a/gm/rrects.cpp |
+++ b/gm/rrects.cpp |
@@ -103,15 +103,14 @@ protected: |
#if SK_SUPPORT_GPU |
GrPipelineBuilder pipelineBuilder; |
pipelineBuilder.setXPFactory( |
- GrPorterDuffXPFactory::Create(SkXfermode::kSrc_Mode))->unref(); |
+ GrPorterDuffXPFactory::Make(SkXfermode::kSrc_Mode)); |
SkRRect rrect = fRRects[curRRect]; |
rrect.offset(SkIntToScalar(x), SkIntToScalar(y)); |
GrPrimitiveEdgeType edgeType = (GrPrimitiveEdgeType) et; |
- SkAutoTUnref<GrFragmentProcessor> fp(GrRRectEffect::Create(edgeType, |
- rrect)); |
+ sk_sp<GrFragmentProcessor> fp(GrRRectEffect::Make(edgeType, rrect)); |
if (fp) { |
- pipelineBuilder.addCoverageFragmentProcessor(fp); |
+ pipelineBuilder.addCoverageFragmentProcessor(std::move(fp)); |
SkRect bounds = rrect.getBounds(); |
bounds.outset(2.f, 2.f); |