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 GrBicubicTextureEffect_DEFINED | 8 #ifndef GrBicubicTextureEffect_DEFINED |
9 #define GrBicubicTextureEffect_DEFINED | 9 #define GrBicubicTextureEffect_DEFINED |
10 | 10 |
11 #include "GrSingleTextureEffect.h" | 11 #include "GrSingleTextureEffect.h" |
12 #include "GrTextureDomain.h" | 12 #include "GrTextureDomain.h" |
| 13 #include "GrDrawEffect.h" |
13 #include "gl/GrGLEffect.h" | 14 #include "gl/GrGLEffect.h" |
14 #include "GrTBackendEffectFactory.h" | 15 #include "GrTBackendEffectFactory.h" |
15 | 16 |
16 class GrGLBicubicEffect; | 17 class GrGLBicubicEffect; |
17 | 18 |
18 class GrBicubicEffect : public GrSingleTextureEffect { | 19 class GrBicubicEffect : public GrSingleTextureEffect { |
19 public: | 20 public: |
20 enum { | 21 enum { |
21 kFilterTexelPad = 2, // Given a src rect in texels to be filtered, this
number of | 22 kFilterTexelPad = 2, // Given a src rect in texels to be filtered, this
number of |
22 // surrounding texels are needed by the kernel in x
and y. | 23 // surrounding texels are needed by the kernel in x
and y. |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 GrTextureDomain fDomain; | 96 GrTextureDomain fDomain; |
96 | 97 |
97 GR_DECLARE_EFFECT_TEST; | 98 GR_DECLARE_EFFECT_TEST; |
98 | 99 |
99 static const SkScalar gMitchellCoefficients[16]; | 100 static const SkScalar gMitchellCoefficients[16]; |
100 | 101 |
101 typedef GrSingleTextureEffect INHERITED; | 102 typedef GrSingleTextureEffect INHERITED; |
102 }; | 103 }; |
103 | 104 |
104 #endif | 105 #endif |
OLD | NEW |