| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 GrTextureDomainEffect_DEFINED | 8 #ifndef GrTextureDomainEffect_DEFINED |
| 9 #define GrTextureDomainEffect_DEFINED | 9 #define GrTextureDomainEffect_DEFINED |
| 10 | 10 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 GrTextureParams::FilterMode filterMode, | 152 GrTextureParams::FilterMode filterMode, |
| 153 GrCoordSet = kLocal_GrCoordSet); | 153 GrCoordSet = kLocal_GrCoordSet); |
| 154 | 154 |
| 155 virtual ~GrTextureDomainEffect(); | 155 virtual ~GrTextureDomainEffect(); |
| 156 | 156 |
| 157 static const char* Name() { return "TextureDomain"; } | 157 static const char* Name() { return "TextureDomain"; } |
| 158 | 158 |
| 159 typedef GrGLTextureDomainEffect GLProcessor; | 159 typedef GrGLTextureDomainEffect GLProcessor; |
| 160 | 160 |
| 161 virtual const GrBackendFragmentProcessorFactory& getFactory() const SK_OVERR
IDE; | 161 virtual const GrBackendFragmentProcessorFactory& getFactory() const SK_OVERR
IDE; |
| 162 virtual void getConstantColorComponents(GrColor* color, uint32_t* validFlags
) const SK_OVERRIDE; | |
| 163 | 162 |
| 164 const GrTextureDomain& textureDomain() const { return fTextureDomain; } | 163 const GrTextureDomain& textureDomain() const { return fTextureDomain; } |
| 165 | 164 |
| 166 protected: | 165 protected: |
| 167 GrTextureDomain fTextureDomain; | 166 GrTextureDomain fTextureDomain; |
| 168 | 167 |
| 169 private: | 168 private: |
| 170 GrTextureDomainEffect(GrTexture*, | 169 GrTextureDomainEffect(GrTexture*, |
| 171 const SkMatrix&, | 170 const SkMatrix&, |
| 172 const SkRect& domain, | 171 const SkRect& domain, |
| 173 GrTextureDomain::Mode, | 172 GrTextureDomain::Mode, |
| 174 GrTextureParams::FilterMode, | 173 GrTextureParams::FilterMode, |
| 175 GrCoordSet); | 174 GrCoordSet); |
| 176 | 175 |
| 177 virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE; | 176 virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE; |
| 178 | 177 |
| 178 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE; |
| 179 |
| 179 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; | 180 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; |
| 180 | 181 |
| 181 typedef GrSingleTextureEffect INHERITED; | 182 typedef GrSingleTextureEffect INHERITED; |
| 182 }; | 183 }; |
| 183 | 184 |
| 184 #endif | 185 #endif |
| OLD | NEW |