| Index: gm/texturedomaineffect.cpp
|
| diff --git a/gm/texturedomaineffect.cpp b/gm/texturedomaineffect.cpp
|
| index 27cb59120e65a220e2796bd74abbd93568713951..cac2b9c8d5c9448f6819d07e4ffca4ffb740ccca 100644
|
| --- a/gm/texturedomaineffect.cpp
|
| +++ b/gm/texturedomaineffect.cpp
|
| @@ -114,18 +114,18 @@ protected:
|
| GrTextureDomain::Mode mode = (GrTextureDomain::Mode) m;
|
| GrPipelineBuilder pipelineBuilder;
|
| pipelineBuilder.setXPFactory(
|
| - GrPorterDuffXPFactory::Create(SkXfermode::kSrc_Mode))->unref();
|
| - SkAutoTUnref<const GrFragmentProcessor> fp(
|
| - GrTextureDomainEffect::Create(texture, textureMatrices[tm],
|
| + GrPorterDuffXPFactory::Make(SkXfermode::kSrc_Mode));
|
| + sk_sp<GrFragmentProcessor> fp(
|
| + GrTextureDomainEffect::Make(texture, textureMatrices[tm],
|
| GrTextureDomain::MakeTexelDomain(texture,
|
| - texelDomains[d]),
|
| + texelDomains[d]),
|
| mode, GrTextureParams::kNone_FilterMode));
|
|
|
| if (!fp) {
|
| continue;
|
| }
|
| const SkMatrix viewMatrix = SkMatrix::MakeTrans(x, y);
|
| - pipelineBuilder.addColorFragmentProcessor(fp);
|
| + pipelineBuilder.addColorFragmentProcessor(std::move(fp));
|
|
|
| SkAutoTUnref<GrDrawBatch> batch(
|
| GrRectBatchFactory::CreateNonAAFill(GrColor_WHITE, viewMatrix,
|
|
|