| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef GrSimpleTextureEffect_DEFINED | 8 #ifndef GrSimpleTextureEffect_DEFINED |
| 9 #define GrSimpleTextureEffect_DEFINED | 9 #define GrSimpleTextureEffect_DEFINED |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 } | 64 } |
| 65 | 65 |
| 66 GrSimpleTextureEffect(GrTexture* texture, | 66 GrSimpleTextureEffect(GrTexture* texture, |
| 67 const SkMatrix& matrix, | 67 const SkMatrix& matrix, |
| 68 const GrTextureParams& params, | 68 const GrTextureParams& params, |
| 69 GrCoordSet coordSet) | 69 GrCoordSet coordSet) |
| 70 : GrSingleTextureEffect(texture, matrix, params, coordSet) { | 70 : GrSingleTextureEffect(texture, matrix, params, coordSet) { |
| 71 } | 71 } |
| 72 | 72 |
| 73 virtual bool onIsEqual(const GrEffect& other) const SK_OVERRIDE { | 73 virtual bool onIsEqual(const GrEffect& other) const SK_OVERRIDE { |
| 74 const GrSimpleTextureEffect& ste = CastEffect<GrSimpleTextureEffect>(oth
er); | 74 const GrSimpleTextureEffect& ste = other.cast<GrSimpleTextureEffect>(); |
| 75 return this->hasSameTextureParamsMatrixAndSourceCoords(ste); | 75 return this->hasSameTextureParamsMatrixAndSourceCoords(ste); |
| 76 } | 76 } |
| 77 | 77 |
| 78 GR_DECLARE_EFFECT_TEST; | 78 GR_DECLARE_EFFECT_TEST; |
| 79 | 79 |
| 80 typedef GrSingleTextureEffect INHERITED; | 80 typedef GrSingleTextureEffect INHERITED; |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 #endif | 83 #endif |
| OLD | NEW |