diff options
Diffstat (limited to 'src/effects/gradients/SkLinearGradient.cpp')
-rw-r--r-- | src/effects/gradients/SkLinearGradient.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/effects/gradients/SkLinearGradient.cpp b/src/effects/gradients/SkLinearGradient.cpp index 5b351d33d0..21b415d58b 100644 --- a/src/effects/gradients/SkLinearGradient.cpp +++ b/src/effects/gradients/SkLinearGradient.cpp @@ -540,10 +540,10 @@ GrEffect* GrLinearGradient::TestCreate(SkRandom* random, tm)); GrSamplerState sampler; shader->asNewCustomStage(context, &sampler); - GrAssert(NULL != sampler.getCustomStage()); + GrAssert(NULL != sampler.getEffect()); // const_cast and ref is a hack! Will remove when asNewCustomStage returns GrEffect* - sampler.getCustomStage()->ref(); - return const_cast<GrEffect*>(sampler.getCustomStage()); + sampler.getEffect()->ref(); + return const_cast<GrEffect*>(sampler.getEffect()); } ///////////////////////////////////////////////////////////////////// @@ -570,9 +570,9 @@ bool SkLinearGradient::asNewCustomStage(GrContext* context, GrSamplerState* samp return false; } matrix.postConcat(fPtsToUnit); - sampler->setCustomStage(stage, matrix); + sampler->setEffect(stage, matrix); } else { - sampler->setCustomStage(stage, fPtsToUnit); + sampler->setEffect(stage, fPtsToUnit); } return true; |