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 #include "GrConvolutionEffect.h" | 8 #include "GrConvolutionEffect.h" |
9 #include "gl/GrGLEffect.h" | 9 #include "gl/GrGLEffect.h" |
| 10 #include "gl/GrGLShaderBuilder.h" |
10 #include "gl/GrGLSL.h" | 11 #include "gl/GrGLSL.h" |
11 #include "gl/GrGLTexture.h" | 12 #include "gl/GrGLTexture.h" |
12 #include "GrTBackendEffectFactory.h" | 13 #include "GrTBackendEffectFactory.h" |
13 | 14 |
14 // For brevity | 15 // For brevity |
15 typedef GrGLUniformManager::UniformHandle UniformHandle; | 16 typedef GrGLUniformManager::UniformHandle UniformHandle; |
16 | 17 |
17 class GrGLConvolutionEffect : public GrGLEffect { | 18 class GrGLConvolutionEffect : public GrGLEffect { |
18 public: | 19 public: |
19 GrGLConvolutionEffect(const GrBackendEffectFactory&, const GrDrawEffect&); | 20 GrGLConvolutionEffect(const GrBackendEffectFactory&, const GrDrawEffect&); |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 } | 230 } |
230 | 231 |
231 bool useBounds = random->nextBool(); | 232 bool useBounds = random->nextBool(); |
232 return GrConvolutionEffect::Create(textures[texIdx], | 233 return GrConvolutionEffect::Create(textures[texIdx], |
233 dir, | 234 dir, |
234 radius, | 235 radius, |
235 kernel, | 236 kernel, |
236 useBounds, | 237 useBounds, |
237 bounds); | 238 bounds); |
238 } | 239 } |
OLD | NEW |