| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 : GrSingleTextureEffect(texture, matrix, filterMode, coordSet) { | 61 : GrSingleTextureEffect(texture, matrix, filterMode, coordSet) { |
| 62 } | 62 } |
| 63 | 63 |
| 64 GrSimpleTextureEffect(GrTexture* texture, | 64 GrSimpleTextureEffect(GrTexture* texture, |
| 65 const SkMatrix& matrix, | 65 const SkMatrix& matrix, |
| 66 const GrTextureParams& params, | 66 const GrTextureParams& params, |
| 67 GrCoordSet coordSet) | 67 GrCoordSet coordSet) |
| 68 : GrSingleTextureEffect(texture, matrix, params, coordSet) { | 68 : GrSingleTextureEffect(texture, matrix, params, coordSet) { |
| 69 } | 69 } |
| 70 | 70 |
| 71 virtual bool onIsEqual(const GrFragmentProcessor& other) const SK_OVERRIDE { | 71 virtual bool onIsEqual(const GrFragmentProcessor& other) const SK_OVERRIDE {
return true; } |
| 72 const GrSimpleTextureEffect& ste = other.cast<GrSimpleTextureEffect>(); | |
| 73 return this->hasSameTextureParamsMatrixAndSourceCoords(ste); | |
| 74 } | |
| 75 | 72 |
| 76 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE; | 73 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE; |
| 77 | 74 |
| 78 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; | 75 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; |
| 79 | 76 |
| 80 typedef GrSingleTextureEffect INHERITED; | 77 typedef GrSingleTextureEffect INHERITED; |
| 81 }; | 78 }; |
| 82 | 79 |
| 83 #endif | 80 #endif |
| OLD | NEW |