Index: gm/texturedomaineffect.cpp |
diff --git a/gm/texturedomaineffect.cpp b/gm/texturedomaineffect.cpp |
index b310253e829b08e0ac1bc8c28ed288ba5cf9e241..6534b0c1dd1c9c50b76f44f2cfda2f770c25c53e 100644 |
--- a/gm/texturedomaineffect.cpp |
+++ b/gm/texturedomaineffect.cpp |
@@ -122,13 +122,13 @@ protected: |
SkScalar x = kDrawPad + kTestPad; |
for (int m = 0; m < GrTextureDomain::kModeCount; ++m) { |
GrTextureDomain::Mode mode = (GrTextureDomain::Mode) m; |
- SkAutoTUnref<GrEffect> effect( |
+ SkAutoTUnref<GrFragmentProcessor> fp( |
GrTextureDomainEffect::Create(texture, textureMatrices[tm], |
GrTextureDomain::MakeTexelDomain(texture, |
texelDomains[d]), |
mode, GrTextureParams::kNone_FilterMode)); |
- if (!effect) { |
+ if (!fp) { |
continue; |
} |
SkMatrix viewMatrix; |
@@ -136,7 +136,7 @@ protected: |
drawState->reset(viewMatrix); |
drawState->setRenderTarget(rt); |
drawState->setColor(0xffffffff); |
- drawState->addColorEffect(effect); |
+ drawState->addColorProcessor(fp); |
tt.target()->drawSimpleRect(renderRect); |
x += renderRect.width() + kTestPad; |