| Index: gm/texturedomaineffect.cpp
|
| diff --git a/gm/texturedomaineffect.cpp b/gm/texturedomaineffect.cpp
|
| index cac2b9c8d5c9448f6819d07e4ffca4ffb740ccca..3680006cc5fad3b4ab241f3303a4c7edebd9de72 100644
|
| --- a/gm/texturedomaineffect.cpp
|
| +++ b/gm/texturedomaineffect.cpp
|
| @@ -112,9 +112,8 @@ protected:
|
| SkScalar x = kDrawPad + kTestPad;
|
| for (int m = 0; m < GrTextureDomain::kModeCount; ++m) {
|
| GrTextureDomain::Mode mode = (GrTextureDomain::Mode) m;
|
| - GrPipelineBuilder pipelineBuilder;
|
| - pipelineBuilder.setXPFactory(
|
| - GrPorterDuffXPFactory::Make(SkXfermode::kSrc_Mode));
|
| + GrPaint grPaint;
|
| + grPaint.setXPFactory(GrPorterDuffXPFactory::Make(SkXfermode::kSrc_Mode));
|
| sk_sp<GrFragmentProcessor> fp(
|
| GrTextureDomainEffect::Make(texture, textureMatrices[tm],
|
| GrTextureDomain::MakeTexelDomain(texture,
|
| @@ -125,12 +124,12 @@ protected:
|
| continue;
|
| }
|
| const SkMatrix viewMatrix = SkMatrix::MakeTrans(x, y);
|
| - pipelineBuilder.addColorFragmentProcessor(std::move(fp));
|
| + grPaint.addColorFragmentProcessor(std::move(fp));
|
|
|
| SkAutoTUnref<GrDrawBatch> batch(
|
| GrRectBatchFactory::CreateNonAAFill(GrColor_WHITE, viewMatrix,
|
| renderRect, nullptr, nullptr));
|
| - drawContext->drawContextPriv().testingOnly_drawBatch(pipelineBuilder, batch);
|
| + drawContext->drawContextPriv().testingOnly_drawBatch(grPaint, batch);
|
| x += renderRect.width() + kTestPad;
|
| }
|
| y += renderRect.height() + kTestPad;
|
|
|