OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 #include "GrMatrixConvolutionEffect.h" | 7 #include "GrMatrixConvolutionEffect.h" |
8 #include "gl/GrGLProcessor.h" | 8 #include "gl/GrGLProcessor.h" |
9 #include "gl/GrGLSL.h" | |
10 #include "gl/GrGLTexture.h" | 9 #include "gl/GrGLTexture.h" |
11 #include "gl/builders/GrGLProgramBuilder.h" | 10 #include "gl/builders/GrGLProgramBuilder.h" |
12 | 11 |
13 class GrGLMatrixConvolutionEffect : public GrGLFragmentProcessor { | 12 class GrGLMatrixConvolutionEffect : public GrGLFragmentProcessor { |
14 public: | 13 public: |
15 GrGLMatrixConvolutionEffect(const GrProcessor&); | 14 GrGLMatrixConvolutionEffect(const GrProcessor&); |
16 virtual void emitCode(GrGLFPBuilder*, | 15 virtual void emitCode(GrGLFPBuilder*, |
17 const GrFragmentProcessor&, | 16 const GrFragmentProcessor&, |
18 const char* outputColor, | 17 const char* outputColor, |
19 const char* inputColor, | 18 const char* inputColor, |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 return GrMatrixConvolutionEffect::Create(textures[texIdx], | 262 return GrMatrixConvolutionEffect::Create(textures[texIdx], |
264 bounds, | 263 bounds, |
265 kernelSize, | 264 kernelSize, |
266 kernel.get(), | 265 kernel.get(), |
267 gain, | 266 gain, |
268 bias, | 267 bias, |
269 kernelOffset, | 268 kernelOffset, |
270 tileMode, | 269 tileMode, |
271 convolveAlpha); | 270 convolveAlpha); |
272 } | 271 } |
OLD | NEW |