| Index: src/effects/SkColorMatrixFilter.cpp
|
| diff --git a/src/effects/SkColorMatrixFilter.cpp b/src/effects/SkColorMatrixFilter.cpp
|
| index 566704849be0cf21ef4c210765c3a8e191e278e5..bf098c840f8194ad9fadb8c4215f7e46e280b642 100644
|
| --- a/src/effects/SkColorMatrixFilter.cpp
|
| +++ b/src/effects/SkColorMatrixFilter.cpp
|
| @@ -399,15 +399,15 @@ public:
|
| class GLEffect : public GrGLEffect {
|
| public:
|
| // this class always generates the same code.
|
| - static void GenKey(const GrDrawEffect&, const GrGLCaps&, GrEffectKeyBuilder* b) {}
|
| + static void GenKey(const GrEffect&, const GrGLCaps&, GrEffectKeyBuilder* b) {}
|
|
|
| GLEffect(const GrBackendEffectFactory& factory,
|
| - const GrDrawEffect&)
|
| + const GrEffect&)
|
| : INHERITED(factory) {
|
| }
|
|
|
| virtual void emitCode(GrGLProgramBuilder* builder,
|
| - const GrDrawEffect&,
|
| + const GrEffect&,
|
| const GrEffectKey&,
|
| const char* outputColor,
|
| const char* inputColor,
|
| @@ -438,8 +438,8 @@ public:
|
| }
|
|
|
| virtual void setData(const GrGLProgramDataManager& uniManager,
|
| - const GrDrawEffect& drawEffect) SK_OVERRIDE {
|
| - const ColorMatrixEffect& cme = drawEffect.castEffect<ColorMatrixEffect>();
|
| + const GrEffect& effect) SK_OVERRIDE {
|
| + const ColorMatrixEffect& cme = effect.cast<ColorMatrixEffect>();
|
| const float* m = cme.fMatrix.fMat;
|
| // The GL matrix is transposed from SkColorMatrix.
|
| GrGLfloat mt[] = {
|
| @@ -467,7 +467,7 @@ private:
|
| ColorMatrixEffect(const SkColorMatrix& matrix) : fMatrix(matrix) {}
|
|
|
| virtual bool onIsEqual(const GrEffect& s) const {
|
| - const ColorMatrixEffect& cme = CastEffect<ColorMatrixEffect>(s);
|
| + const ColorMatrixEffect& cme = s.cast<ColorMatrixEffect>();
|
| return cme.fMatrix == fMatrix;
|
| }
|
|
|
|
|