| Index: src/effects/SkColorMatrixFilter.cpp
|
| diff --git a/src/effects/SkColorMatrixFilter.cpp b/src/effects/SkColorMatrixFilter.cpp
|
| index b3b9c295ab5e406a87b82c57fada294decd6c9b7..cf2e3b75fdf26cb20a015ffe733a3fe0d4ab40a9 100644
|
| --- a/src/effects/SkColorMatrixFilter.cpp
|
| +++ b/src/effects/SkColorMatrixFilter.cpp
|
| @@ -330,7 +330,7 @@ bool SkColorMatrixFilter::asColorMatrix(SkScalar matrix[20]) const {
|
|
|
| class ColorMatrixEffect : public GrEffect {
|
| public:
|
| - static GrEffectRef* Create(const SkColorMatrix& matrix) {
|
| + static GrEffect* Create(const SkColorMatrix& matrix) {
|
| return SkNEW_ARGS(ColorMatrixEffect, (matrix));
|
| }
|
|
|
| @@ -468,10 +468,10 @@ private:
|
|
|
| GR_DEFINE_EFFECT_TEST(ColorMatrixEffect);
|
|
|
| -GrEffectRef* ColorMatrixEffect::TestCreate(SkRandom* random,
|
| - GrContext*,
|
| - const GrDrawTargetCaps&,
|
| - GrTexture* dummyTextures[2]) {
|
| +GrEffect* ColorMatrixEffect::TestCreate(SkRandom* random,
|
| + GrContext*,
|
| + const GrDrawTargetCaps&,
|
| + GrTexture* dummyTextures[2]) {
|
| SkColorMatrix colorMatrix;
|
| for (size_t i = 0; i < SK_ARRAY_COUNT(colorMatrix.fMat); ++i) {
|
| colorMatrix.fMat[i] = random->nextSScalar1();
|
| @@ -479,7 +479,7 @@ GrEffectRef* ColorMatrixEffect::TestCreate(SkRandom* random,
|
| return ColorMatrixEffect::Create(colorMatrix);
|
| }
|
|
|
| -GrEffectRef* SkColorMatrixFilter::asNewEffect(GrContext*) const {
|
| +GrEffect* SkColorMatrixFilter::asNewEffect(GrContext*) const {
|
| return ColorMatrixEffect::Create(fMatrix);
|
| }
|
|
|
|
|