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 |
11 #include "GrSingleTextureEffect.h" | 11 #include "GrSingleTextureEffect.h" |
12 #include "gl/GrGLEffect.h" | 12 #include "gl/GrGLEffect.h" |
13 | 13 |
| 14 class GrGLProgramBuilder; |
14 class GrGLShaderBuilder; | 15 class GrGLShaderBuilder; |
15 struct SkRect; | 16 struct SkRect; |
16 | 17 |
17 /** | 18 /** |
18 * Limits a texture's lookup coordinates to a domain. Samples outside the domain
are either clamped | 19 * Limits a texture's lookup coordinates to a domain. Samples outside the domain
are either clamped |
19 * the edge of the domain or result in a vec4 of zeros (decal mode). The domain
is clipped to | 20 * the edge of the domain or result in a vec4 of zeros (decal mode). The domain
is clipped to |
20 * normalized texture coords ([0,1]x[0,1] square). Bilinear filtering can cause
texels outside the | 21 * normalized texture coords ([0,1]x[0,1] square). Bilinear filtering can cause
texels outside the |
21 * domain to affect the read value unless the caller considers this when calcula
ting the domain. | 22 * domain to affect the read value unless the caller considers this when calcula
ting the domain. |
22 */ | 23 */ |
23 class GrTextureDomain { | 24 class GrTextureDomain { |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 GrCoordSet); | 174 GrCoordSet); |
174 | 175 |
175 virtual bool onIsEqual(const GrEffect&) const SK_OVERRIDE; | 176 virtual bool onIsEqual(const GrEffect&) const SK_OVERRIDE; |
176 | 177 |
177 GR_DECLARE_EFFECT_TEST; | 178 GR_DECLARE_EFFECT_TEST; |
178 | 179 |
179 typedef GrSingleTextureEffect INHERITED; | 180 typedef GrSingleTextureEffect INHERITED; |
180 }; | 181 }; |
181 | 182 |
182 #endif | 183 #endif |
OLD | NEW |