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/GrGLFragmentProcessor.h" |
9 #include "gl/GrGLTexture.h" | 9 #include "gl/GrGLTexture.h" |
10 #include "gl/builders/GrGLProgramBuilder.h" | 10 #include "gl/builders/GrGLProgramBuilder.h" |
11 | 11 |
12 class GrGLMatrixConvolutionEffect : public GrGLFragmentProcessor { | 12 class GrGLMatrixConvolutionEffect : public GrGLFragmentProcessor { |
13 public: | 13 public: |
14 GrGLMatrixConvolutionEffect(const GrProcessor&); | 14 GrGLMatrixConvolutionEffect(const GrProcessor&); |
15 virtual void emitCode(GrGLFPBuilder*, | 15 virtual void emitCode(GrGLFPBuilder*, |
16 const GrFragmentProcessor&, | 16 const GrFragmentProcessor&, |
17 const char* outputColor, | 17 const char* outputColor, |
18 const char* inputColor, | 18 const char* inputColor, |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 d->fTextures[texIdx], | 264 d->fTextures[texIdx], |
265 bounds, | 265 bounds, |
266 kernelSize, | 266 kernelSize, |
267 kernel.get(), | 267 kernel.get(), |
268 gain, | 268 gain, |
269 bias, | 269 bias, |
270 kernelOffset, | 270 kernelOffset, |
271 tileMode, | 271 tileMode, |
272 convolveAlpha); | 272 convolveAlpha); |
273 } | 273 } |
OLD | NEW |