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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 }; | 129 }; |
130 | 130 |
131 class GrGLTextureDomainEffect; | 131 class GrGLTextureDomainEffect; |
132 | 132 |
133 /** | 133 /** |
134 * A basic texture effect that uses GrTextureDomain. | 134 * A basic texture effect that uses GrTextureDomain. |
135 */ | 135 */ |
136 class GrTextureDomainEffect : public GrSingleTextureEffect { | 136 class GrTextureDomainEffect : public GrSingleTextureEffect { |
137 | 137 |
138 public: | 138 public: |
139 static GrEffectRef* Create(GrTexture*, | 139 static GrEffect* Create(GrTexture*, |
140 const SkMatrix&, | 140 const SkMatrix&, |
141 const SkRect& domain, | 141 const SkRect& domain, |
142 GrTextureDomain::Mode, | 142 GrTextureDomain::Mode, |
143 GrTextureParams::FilterMode filterMode, | 143 GrTextureParams::FilterMode filterMode, |
144 GrCoordSet = kLocal_GrCoordSet); | 144 GrCoordSet = kLocal_GrCoordSet); |
145 | 145 |
146 virtual ~GrTextureDomainEffect(); | 146 virtual ~GrTextureDomainEffect(); |
147 | 147 |
148 static const char* Name() { return "TextureDomain"; } | 148 static const char* Name() { return "TextureDomain"; } |
149 | 149 |
150 typedef GrGLTextureDomainEffect GLEffect; | 150 typedef GrGLTextureDomainEffect GLEffect; |
151 | 151 |
152 virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE; | 152 virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE; |
153 virtual void getConstantColorComponents(GrColor* color, uint32_t* validFlags
) const SK_OVERRIDE; | 153 virtual void getConstantColorComponents(GrColor* color, uint32_t* validFlags
) const SK_OVERRIDE; |
154 | 154 |
(...skipping 11 matching lines...) Expand all Loading... |
166 GrCoordSet); | 166 GrCoordSet); |
167 | 167 |
168 virtual bool onIsEqual(const GrEffect&) const SK_OVERRIDE; | 168 virtual bool onIsEqual(const GrEffect&) const SK_OVERRIDE; |
169 | 169 |
170 GR_DECLARE_EFFECT_TEST; | 170 GR_DECLARE_EFFECT_TEST; |
171 | 171 |
172 typedef GrSingleTextureEffect INHERITED; | 172 typedef GrSingleTextureEffect INHERITED; |
173 }; | 173 }; |
174 | 174 |
175 #endif | 175 #endif |
OLD | NEW |