aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/gradients/SkLinearGradient.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-24 19:07:10 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-24 19:07:10 +0000
commit6f261bed0252e3f3caa595798364e0bf12a2573a (patch)
treee6cf7cfab6ff785b002b88b165a6bd00a9402960 /src/effects/gradients/SkLinearGradient.cpp
parenta469c28c3c16214733a25201a286970f57b3d944 (diff)
GrCustomStage Renaming Part 2
GrSamplerState member rename GrCustomStageUnitTest rename some comment updates Review URL: https://codereview.appspot.com/6771043 git-svn-id: http://skia.googlecode.com/svn/trunk@6078 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/effects/gradients/SkLinearGradient.cpp')
-rw-r--r--src/effects/gradients/SkLinearGradient.cpp10
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;