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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 const SkMatrix&, | 161 const SkMatrix&, |
162 const SkRect& domain, | 162 const SkRect& domain, |
163 GrTextureDomain::Mode, | 163 GrTextureDomain::Mode, |
164 GrTextureParams::FilterMode filterMode, | 164 GrTextureParams::FilterMode filterMode, |
165 GrCoordSet = kLocal_GrCoordSet); | 165 GrCoordSet = kLocal_GrCoordSet); |
166 | 166 |
167 virtual ~GrTextureDomainEffect(); | 167 virtual ~GrTextureDomainEffect(); |
168 | 168 |
169 const char* name() const override { return "TextureDomain"; } | 169 const char* name() const override { return "TextureDomain"; } |
170 | 170 |
171 void getGLProcessorKey(const GrGLCaps&, GrProcessorKeyBuilder*) const overri
de; | 171 void getGLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const over
ride; |
172 | 172 |
173 GrGLFragmentProcessor* createGLInstance() const override; | 173 GrGLFragmentProcessor* createGLInstance() const override; |
174 | 174 |
175 const GrTextureDomain& textureDomain() const { return fTextureDomain; } | 175 const GrTextureDomain& textureDomain() const { return fTextureDomain; } |
176 | 176 |
177 protected: | 177 protected: |
178 GrTextureDomain fTextureDomain; | 178 GrTextureDomain fTextureDomain; |
179 | 179 |
180 private: | 180 private: |
181 GrTextureDomainEffect(GrTexture*, | 181 GrTextureDomainEffect(GrTexture*, |
182 const SkMatrix&, | 182 const SkMatrix&, |
183 const SkRect& domain, | 183 const SkRect& domain, |
184 GrTextureDomain::Mode, | 184 GrTextureDomain::Mode, |
185 GrTextureParams::FilterMode, | 185 GrTextureParams::FilterMode, |
186 GrCoordSet); | 186 GrCoordSet); |
187 | 187 |
188 bool onIsEqual(const GrFragmentProcessor&) const override; | 188 bool onIsEqual(const GrFragmentProcessor&) const override; |
189 | 189 |
190 void onComputeInvariantOutput(GrInvariantOutput* inout) const override; | 190 void onComputeInvariantOutput(GrInvariantOutput* inout) const override; |
191 | 191 |
192 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; | 192 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; |
193 | 193 |
194 typedef GrSingleTextureEffect INHERITED; | 194 typedef GrSingleTextureEffect INHERITED; |
195 }; | 195 }; |
196 | 196 |
197 #endif | 197 #endif |
OLD | NEW |