diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-28 14:26:09 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-28 14:26:09 +0000 |
commit | adc6536fe5baff2216fb76ecda6cc81c61109d5c (patch) | |
tree | 97b6150e7d5afc0681a1efde9659fc8c30dbd35a /tests | |
parent | 093455c116c016e95c47740ef7385f8a3372f160 (diff) |
Remove getter of writable GrEffectStage from GrDrawState.
Upcoming changes will require GrDrawState to know things about the set of installed effects. Thus all setting of effects must go through a GrDrawState function (setEffect()). This change accomplishes that.
Review URL: https://codereview.appspot.com/7214045
git-svn-id: http://skia.googlecode.com/svn/trunk@7411 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r-- | tests/GLProgramsTest.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp index e83ddebfa9..f9dd9188e4 100644 --- a/tests/GLProgramsTest.cpp +++ b/tests/GLProgramsTest.cpp @@ -169,12 +169,10 @@ void forceLinking(); void forceLinking() { SkLightingImageFilter::CreateDistantLitDiffuse(SkPoint3(0,0,0), 0, 0, 0); SkMagnifierImageFilter mag(SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar1); - GrEffectStage dummyStage; - GrConfigConversionEffect::InstallEffect(NULL, - false, - GrConfigConversionEffect::kNone_PMConversion, - SkMatrix::I(), - &dummyStage); + GrConfigConversionEffect::Create(NULL, + false, + GrConfigConversionEffect::kNone_PMConversion, + SkMatrix::I()); SkScalar matrix[20]; SkColorMatrixFilter cmf(matrix); } |