Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: src/gpu/effects/GrConvolutionEffect.cpp

Issue 356513003: Step towards variable length effect keys. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweak comment Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698