| 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/GrGLProcessor.h" |
| 10 #include "gl/GrGLSL.h" | |
| 11 #include "gl/GrGLTexture.h" | 10 #include "gl/GrGLTexture.h" |
| 12 #include "gl/builders/GrGLProgramBuilder.h" | 11 #include "gl/builders/GrGLProgramBuilder.h" |
| 13 | 12 |
| 14 // For brevity | 13 // For brevity |
| 15 typedef GrGLProgramDataManager::UniformHandle UniformHandle; | 14 typedef GrGLProgramDataManager::UniformHandle UniformHandle; |
| 16 | 15 |
| 17 class GrGLConvolutionEffect : public GrGLFragmentProcessor { | 16 class GrGLConvolutionEffect : public GrGLFragmentProcessor { |
| 18 public: | 17 public: |
| 19 GrGLConvolutionEffect(const GrProcessor&); | 18 GrGLConvolutionEffect(const GrProcessor&); |
| 20 | 19 |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 } | 235 } |
| 237 | 236 |
| 238 bool useBounds = random->nextBool(); | 237 bool useBounds = random->nextBool(); |
| 239 return GrConvolutionEffect::Create(textures[texIdx], | 238 return GrConvolutionEffect::Create(textures[texIdx], |
| 240 dir, | 239 dir, |
| 241 radius, | 240 radius, |
| 242 kernel, | 241 kernel, |
| 243 useBounds, | 242 useBounds, |
| 244 bounds); | 243 bounds); |
| 245 } | 244 } |
| OLD | NEW |