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/GrGLProcessor.h" | 9 #include "gl/GrGLFragmentProcessor.h" |
10 #include "gl/GrGLTexture.h" | 10 #include "gl/GrGLTexture.h" |
11 #include "gl/builders/GrGLProgramBuilder.h" | 11 #include "gl/builders/GrGLProgramBuilder.h" |
12 | 12 |
13 // For brevity | 13 // For brevity |
14 typedef GrGLProgramDataManager::UniformHandle UniformHandle; | 14 typedef GrGLProgramDataManager::UniformHandle UniformHandle; |
15 | 15 |
16 class GrGLConvolutionEffect : public GrGLFragmentProcessor { | 16 class GrGLConvolutionEffect : public GrGLFragmentProcessor { |
17 public: | 17 public: |
18 GrGLConvolutionEffect(const GrProcessor&); | 18 GrGLConvolutionEffect(const GrProcessor&); |
19 | 19 |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 | 242 |
243 bool useBounds = d->fRandom->nextBool(); | 243 bool useBounds = d->fRandom->nextBool(); |
244 return GrConvolutionEffect::Create(d->fProcDataManager, | 244 return GrConvolutionEffect::Create(d->fProcDataManager, |
245 d->fTextures[texIdx], | 245 d->fTextures[texIdx], |
246 dir, | 246 dir, |
247 radius, | 247 radius, |
248 kernel, | 248 kernel, |
249 useBounds, | 249 useBounds, |
250 bounds); | 250 bounds); |
251 } | 251 } |
OLD | NEW |