| tomhudson@google.com | d8f856c | 2012-05-10 12:13:36 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #include "GrConvolutionEffect.h" |
| wangyix | 6af0c93 | 2015-07-22 10:21:17 -0700 | [diff] [blame] | 9 | #include "gl/GrGLFragmentProcessor.h" |
| tomhudson@google.com | d8f856c | 2012-05-10 12:13:36 +0000 | [diff] [blame] | 10 | #include "gl/GrGLTexture.h" |
| joshualitt | eb2a676 | 2014-12-04 11:35:33 -0800 | [diff] [blame] | 11 | #include "gl/builders/GrGLProgramBuilder.h" |
| egdaniel | 018fb62 | 2015-10-28 07:26:40 -0700 | [diff] [blame^] | 12 | #include "glsl/GrGLSLProgramDataManager.h" |
| tomhudson@google.com | d8f856c | 2012-05-10 12:13:36 +0000 | [diff] [blame] | 13 | |
| bsalomon@google.com | dbbc4e2 | 2012-07-25 17:48:39 +0000 | [diff] [blame] | 14 | // For brevity |
| egdaniel | 018fb62 | 2015-10-28 07:26:40 -0700 | [diff] [blame^] | 15 | typedef GrGLSLProgramDataManager::UniformHandle UniformHandle; |
| bsalomon@google.com | 032b221 | 2012-07-16 13:36:18 +0000 | [diff] [blame] | 16 | |
| joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 17 | class GrGLConvolutionEffect : public GrGLFragmentProcessor { |
| tomhudson@google.com | d8f856c | 2012-05-10 12:13:36 +0000 | [diff] [blame] | 18 | public: |
| joshualitt | eb2a676 | 2014-12-04 11:35:33 -0800 | [diff] [blame] | 19 | GrGLConvolutionEffect(const GrProcessor&); |
| ericrk | 7a787b4 | 2015-07-21 14:06:16 -0700 | [diff] [blame] | 20 | |
| wangyix | 7c157a9 | 2015-07-22 15:08:53 -0700 | [diff] [blame] | 21 | virtual void emitCode(EmitArgs&) override; |
| ericrk | 7a787b4 | 2015-07-21 14:06:16 -0700 | [diff] [blame] | 22 | |
| jvanverth | cfc1886 | 2015-04-28 08:48:20 -0700 | [diff] [blame] | 23 | static inline void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessorKeyBuilder*); |
| tomhudson@google.com | d8f856c | 2012-05-10 12:13:36 +0000 | [diff] [blame] | 24 | |
| wangyix | b1daa86 | 2015-08-18 11:29:31 -0700 | [diff] [blame] | 25 | protected: |
| egdaniel | 018fb62 | 2015-10-28 07:26:40 -0700 | [diff] [blame^] | 26 | void onSetData(const GrGLSLProgramDataManager& pdman, const GrProcessor&) override; |
| wangyix | b1daa86 | 2015-08-18 11:29:31 -0700 | [diff] [blame] | 27 | |
| ericrk | 0f38612 | 2015-07-21 13:15:47 -0700 | [diff] [blame] | 28 | private: |
| ericrk | 7a787b4 | 2015-07-21 14:06:16 -0700 | [diff] [blame] | 29 | int width() const { return Gr1DKernelEffect::WidthFromRadius(fRadius); } |
| 30 | bool useBounds() const { return fUseBounds; } |
| 31 | Gr1DKernelEffect::Direction direction() const { return fDirection; } |
| 32 | |
| 33 | int fRadius; |
| 34 | bool fUseBounds; |
| 35 | Gr1DKernelEffect::Direction fDirection; |
| 36 | UniformHandle fKernelUni; |
| 37 | UniformHandle fImageIncrementUni; |
| 38 | UniformHandle fBoundsUni; |
| tomhudson@google.com | d8f856c | 2012-05-10 12:13:36 +0000 | [diff] [blame] | 39 | |
| joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 40 | typedef GrGLFragmentProcessor INHERITED; |
| tomhudson@google.com | d8f856c | 2012-05-10 12:13:36 +0000 | [diff] [blame] | 41 | }; |
| 42 | |
| joshualitt | eb2a676 | 2014-12-04 11:35:33 -0800 | [diff] [blame] | 43 | GrGLConvolutionEffect::GrGLConvolutionEffect(const GrProcessor& processor) { |
| joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 44 | const GrConvolutionEffect& c = processor.cast<GrConvolutionEffect>(); |
| bsalomon@google.com | b505a12 | 2012-05-31 18:40:36 +0000 | [diff] [blame] | 45 | fRadius = c.radius(); |
| ericrk | 7a787b4 | 2015-07-21 14:06:16 -0700 | [diff] [blame] | 46 | fUseBounds = c.useBounds(); |
| senorblanco@chromium.org | e8232bc | 2013-07-29 18:45:44 +0000 | [diff] [blame] | 47 | fDirection = c.direction(); |
| tomhudson@google.com | d8f856c | 2012-05-10 12:13:36 +0000 | [diff] [blame] | 48 | } |
| 49 | |
| wangyix | 7c157a9 | 2015-07-22 15:08:53 -0700 | [diff] [blame] | 50 | void GrGLConvolutionEffect::emitCode(EmitArgs& args) { |
| 51 | fImageIncrementUni = args.fBuilder->addUniform(GrGLProgramBuilder::kFragment_Visibility, |
| ericrk | 7a787b4 | 2015-07-21 14:06:16 -0700 | [diff] [blame] | 52 | kVec2f_GrSLType, kDefault_GrSLPrecision, |
| 53 | "ImageIncrement"); |
| 54 | if (this->useBounds()) { |
| wangyix | 7c157a9 | 2015-07-22 15:08:53 -0700 | [diff] [blame] | 55 | fBoundsUni = args.fBuilder->addUniform(GrGLProgramBuilder::kFragment_Visibility, |
| ericrk | 7a787b4 | 2015-07-21 14:06:16 -0700 | [diff] [blame] | 56 | kVec2f_GrSLType, kDefault_GrSLPrecision, |
| 57 | "Bounds"); |
| 58 | } |
| wangyix | 7c157a9 | 2015-07-22 15:08:53 -0700 | [diff] [blame] | 59 | fKernelUni = args.fBuilder->addUniformArray(GrGLProgramBuilder::kFragment_Visibility, |
| ericrk | 7a787b4 | 2015-07-21 14:06:16 -0700 | [diff] [blame] | 60 | kFloat_GrSLType, kDefault_GrSLPrecision, |
| 61 | "Kernel", this->width()); |
| 62 | |
| wangyix | 7c157a9 | 2015-07-22 15:08:53 -0700 | [diff] [blame] | 63 | GrGLFragmentBuilder* fsBuilder = args.fBuilder->getFragmentShaderBuilder(); |
| 64 | SkString coords2D = fsBuilder->ensureFSCoords2D(args.fCoords, 0); |
| ericrk | 7a787b4 | 2015-07-21 14:06:16 -0700 | [diff] [blame] | 65 | |
| wangyix | 7c157a9 | 2015-07-22 15:08:53 -0700 | [diff] [blame] | 66 | fsBuilder->codeAppendf("\t\t%s = vec4(0, 0, 0, 0);\n", args.fOutputColor); |
| ericrk | 7a787b4 | 2015-07-21 14:06:16 -0700 | [diff] [blame] | 67 | |
| 68 | int width = this->width(); |
| egdaniel | 0d3f061 | 2015-10-21 10:45:48 -0700 | [diff] [blame] | 69 | const GrGLSLShaderVar& kernel = args.fBuilder->getUniformVariable(fKernelUni); |
| wangyix | 7c157a9 | 2015-07-22 15:08:53 -0700 | [diff] [blame] | 70 | const char* imgInc = args.fBuilder->getUniformCStr(fImageIncrementUni); |
| ericrk | 7a787b4 | 2015-07-21 14:06:16 -0700 | [diff] [blame] | 71 | |
| 72 | fsBuilder->codeAppendf("\t\tvec2 coord = %s - %d.0 * %s;\n", coords2D.c_str(), fRadius, imgInc); |
| 73 | |
| 74 | // Manually unroll loop because some drivers don't; yields 20-30% speedup. |
| 75 | for (int i = 0; i < width; i++) { |
| 76 | SkString index; |
| 77 | SkString kernelIndex; |
| 78 | index.appendS32(i); |
| 79 | kernel.appendArrayAccess(index.c_str(), &kernelIndex); |
| 80 | |
| 81 | if (this->useBounds()) { |
| 82 | // We used to compute a bool indicating whether we're in bounds or not, cast it to a |
| 83 | // float, and then mul weight*texture_sample by the float. However, the Adreno 430 seems |
| 84 | // to have a bug that caused corruption. |
| wangyix | 7c157a9 | 2015-07-22 15:08:53 -0700 | [diff] [blame] | 85 | const char* bounds = args.fBuilder->getUniformCStr(fBoundsUni); |
| ericrk | 7a787b4 | 2015-07-21 14:06:16 -0700 | [diff] [blame] | 86 | const char* component = this->direction() == Gr1DKernelEffect::kY_Direction ? "y" : "x"; |
| 87 | fsBuilder->codeAppendf("if (coord.%s >= %s.x && coord.%s <= %s.y) {", |
| 88 | component, bounds, component, bounds); |
| 89 | } |
| wangyix | 7c157a9 | 2015-07-22 15:08:53 -0700 | [diff] [blame] | 90 | fsBuilder->codeAppendf("\t\t%s += ", args.fOutputColor); |
| 91 | fsBuilder->appendTextureLookup(args.fSamplers[0], "coord"); |
| ericrk | 7a787b4 | 2015-07-21 14:06:16 -0700 | [diff] [blame] | 92 | fsBuilder->codeAppendf(" * %s;\n", kernelIndex.c_str()); |
| 93 | if (this->useBounds()) { |
| 94 | fsBuilder->codeAppend("}"); |
| 95 | } |
| 96 | fsBuilder->codeAppendf("\t\tcoord += %s;\n", imgInc); |
| 97 | } |
| 98 | |
| 99 | SkString modulate; |
| wangyix | 7c157a9 | 2015-07-22 15:08:53 -0700 | [diff] [blame] | 100 | GrGLSLMulVarBy4f(&modulate, args.fOutputColor, args.fInputColor); |
| ericrk | 7a787b4 | 2015-07-21 14:06:16 -0700 | [diff] [blame] | 101 | fsBuilder->codeAppend(modulate.c_str()); |
| 102 | } |
| 103 | |
| egdaniel | 018fb62 | 2015-10-28 07:26:40 -0700 | [diff] [blame^] | 104 | void GrGLConvolutionEffect::onSetData(const GrGLSLProgramDataManager& pdman, |
| 105 | const GrProcessor& processor) { |
| ericrk | 7a787b4 | 2015-07-21 14:06:16 -0700 | [diff] [blame] | 106 | const GrConvolutionEffect& conv = processor.cast<GrConvolutionEffect>(); |
| 107 | GrTexture& texture = *conv.texture(0); |
| 108 | // the code we generated was for a specific kernel radius |
| 109 | SkASSERT(conv.radius() == fRadius); |
| 110 | float imageIncrement[2] = { 0 }; |
| 111 | float ySign = texture.origin() != kTopLeft_GrSurfaceOrigin ? 1.0f : -1.0f; |
| 112 | switch (conv.direction()) { |
| 113 | case Gr1DKernelEffect::kX_Direction: |
| 114 | imageIncrement[0] = 1.0f / texture.width(); |
| 115 | break; |
| 116 | case Gr1DKernelEffect::kY_Direction: |
| 117 | imageIncrement[1] = ySign / texture.height(); |
| 118 | break; |
| 119 | default: |
| 120 | SkFAIL("Unknown filter direction."); |
| 121 | } |
| 122 | pdman.set2fv(fImageIncrementUni, 1, imageIncrement); |
| 123 | if (conv.useBounds()) { |
| 124 | const float* bounds = conv.bounds(); |
| 125 | if (Gr1DKernelEffect::kY_Direction == conv.direction() && |
| 126 | texture.origin() != kTopLeft_GrSurfaceOrigin) { |
| 127 | pdman.set2f(fBoundsUni, 1.0f - bounds[1], 1.0f - bounds[0]); |
| 128 | } else { |
| 129 | pdman.set2f(fBoundsUni, bounds[0], bounds[1]); |
| 130 | } |
| 131 | } |
| 132 | pdman.set1fv(fKernelUni, this->width(), conv.kernel()); |
| 133 | } |
| 134 | |
| 135 | void GrGLConvolutionEffect::GenKey(const GrProcessor& processor, const GrGLSLCaps&, |
| joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 136 | GrProcessorKeyBuilder* b) { |
| 137 | const GrConvolutionEffect& conv = processor.cast<GrConvolutionEffect>(); |
| bsalomon | 63e99f7 | 2014-07-21 08:03:14 -0700 | [diff] [blame] | 138 | uint32_t key = conv.radius(); |
| senorblanco@chromium.org | e8232bc | 2013-07-29 18:45:44 +0000 | [diff] [blame] | 139 | key <<= 2; |
| 140 | if (conv.useBounds()) { |
| 141 | key |= 0x2; |
| 142 | key |= GrConvolutionEffect::kY_Direction == conv.direction() ? 0x1 : 0x0; |
| 143 | } |
| bsalomon | 63e99f7 | 2014-07-21 08:03:14 -0700 | [diff] [blame] | 144 | b->add32(key); |
| tomhudson@google.com | d8f856c | 2012-05-10 12:13:36 +0000 | [diff] [blame] | 145 | } |
| 146 | |
| bsalomon@google.com | b505a12 | 2012-05-31 18:40:36 +0000 | [diff] [blame] | 147 | /////////////////////////////////////////////////////////////////////////////// |
| tomhudson@google.com | d8f856c | 2012-05-10 12:13:36 +0000 | [diff] [blame] | 148 | |
| bsalomon | 4a33952 | 2015-10-06 08:40:50 -0700 | [diff] [blame] | 149 | GrConvolutionEffect::GrConvolutionEffect(GrTexture* texture, |
| tomhudson@google.com | d0c1a06 | 2012-07-12 17:23:52 +0000 | [diff] [blame] | 150 | Direction direction, |
| bsalomon@google.com | b505a12 | 2012-05-31 18:40:36 +0000 | [diff] [blame] | 151 | int radius, |
| senorblanco@chromium.org | 194d775 | 2013-07-24 22:19:24 +0000 | [diff] [blame] | 152 | const float* kernel, |
| senorblanco@chromium.org | e8232bc | 2013-07-29 18:45:44 +0000 | [diff] [blame] | 153 | bool useBounds, |
| 154 | float bounds[2]) |
| bsalomon | 4a33952 | 2015-10-06 08:40:50 -0700 | [diff] [blame] | 155 | : INHERITED(texture, direction, radius), fUseBounds(useBounds) { |
| joshualitt | eb2a676 | 2014-12-04 11:35:33 -0800 | [diff] [blame] | 156 | this->initClassID<GrConvolutionEffect>(); |
| tfarina@chromium.org | f6de475 | 2013-08-17 00:02:59 +0000 | [diff] [blame] | 157 | SkASSERT(radius <= kMaxKernelRadius); |
| bsalomon | 49f085d | 2014-09-05 13:34:00 -0700 | [diff] [blame] | 158 | SkASSERT(kernel); |
| bsalomon@google.com | b505a12 | 2012-05-31 18:40:36 +0000 | [diff] [blame] | 159 | int width = this->width(); |
| bsalomon@google.com | b4a55b7 | 2012-11-02 20:45:37 +0000 | [diff] [blame] | 160 | for (int i = 0; i < width; i++) { |
| 161 | fKernel[i] = kernel[i]; |
| tomhudson@google.com | d8f856c | 2012-05-10 12:13:36 +0000 | [diff] [blame] | 162 | } |
| senorblanco@chromium.org | e8232bc | 2013-07-29 18:45:44 +0000 | [diff] [blame] | 163 | memcpy(fBounds, bounds, sizeof(fBounds)); |
| tomhudson@google.com | d8f856c | 2012-05-10 12:13:36 +0000 | [diff] [blame] | 164 | } |
| 165 | |
| bsalomon | 4a33952 | 2015-10-06 08:40:50 -0700 | [diff] [blame] | 166 | GrConvolutionEffect::GrConvolutionEffect(GrTexture* texture, |
| tomhudson@google.com | fde2c0a | 2012-07-16 12:23:32 +0000 | [diff] [blame] | 167 | Direction direction, |
| 168 | int radius, |
| senorblanco@chromium.org | 194d775 | 2013-07-24 22:19:24 +0000 | [diff] [blame] | 169 | float gaussianSigma, |
| senorblanco@chromium.org | e8232bc | 2013-07-29 18:45:44 +0000 | [diff] [blame] | 170 | bool useBounds, |
| 171 | float bounds[2]) |
| bsalomon | 4a33952 | 2015-10-06 08:40:50 -0700 | [diff] [blame] | 172 | : INHERITED(texture, direction, radius), fUseBounds(useBounds) { |
| joshualitt | eb2a676 | 2014-12-04 11:35:33 -0800 | [diff] [blame] | 173 | this->initClassID<GrConvolutionEffect>(); |
| tfarina@chromium.org | f6de475 | 2013-08-17 00:02:59 +0000 | [diff] [blame] | 174 | SkASSERT(radius <= kMaxKernelRadius); |
| tomhudson@google.com | fde2c0a | 2012-07-16 12:23:32 +0000 | [diff] [blame] | 175 | int width = this->width(); |
| 176 | |
| 177 | float sum = 0.0f; |
| 178 | float denom = 1.0f / (2.0f * gaussianSigma * gaussianSigma); |
| 179 | for (int i = 0; i < width; ++i) { |
| 180 | float x = static_cast<float>(i - this->radius()); |
| 181 | // Note that the constant term (1/(sqrt(2*pi*sigma^2)) of the Gaussian |
| 182 | // is dropped here, since we renormalize the kernel below. |
| 183 | fKernel[i] = sk_float_exp(- x * x * denom); |
| 184 | sum += fKernel[i]; |
| 185 | } |
| 186 | // Normalize the kernel |
| 187 | float scale = 1.0f / sum; |
| 188 | for (int i = 0; i < width; ++i) { |
| 189 | fKernel[i] *= scale; |
| 190 | } |
| senorblanco@chromium.org | e8232bc | 2013-07-29 18:45:44 +0000 | [diff] [blame] | 191 | memcpy(fBounds, bounds, sizeof(fBounds)); |
| tomhudson@google.com | fde2c0a | 2012-07-16 12:23:32 +0000 | [diff] [blame] | 192 | } |
| 193 | |
| tomhudson@google.com | d8f856c | 2012-05-10 12:13:36 +0000 | [diff] [blame] | 194 | GrConvolutionEffect::~GrConvolutionEffect() { |
| tomhudson@google.com | d8f856c | 2012-05-10 12:13:36 +0000 | [diff] [blame] | 195 | } |
| 196 | |
| wangyix | 4b3050b | 2015-08-04 07:59:37 -0700 | [diff] [blame] | 197 | void GrConvolutionEffect::onGetGLProcessorKey(const GrGLSLCaps& caps, |
| joshualitt | eb2a676 | 2014-12-04 11:35:33 -0800 | [diff] [blame] | 198 | GrProcessorKeyBuilder* b) const { |
| 199 | GrGLConvolutionEffect::GenKey(*this, caps, b); |
| 200 | } |
| 201 | |
| wangyix | b1daa86 | 2015-08-18 11:29:31 -0700 | [diff] [blame] | 202 | GrGLFragmentProcessor* GrConvolutionEffect::onCreateGLInstance() const { |
| halcanary | 385fe4d | 2015-08-26 13:07:48 -0700 | [diff] [blame] | 203 | return new GrGLConvolutionEffect(*this); |
| tomhudson@google.com | d8f856c | 2012-05-10 12:13:36 +0000 | [diff] [blame] | 204 | } |
| 205 | |
| bsalomon | 0e08fc1 | 2014-10-15 08:19:04 -0700 | [diff] [blame] | 206 | bool GrConvolutionEffect::onIsEqual(const GrFragmentProcessor& sBase) const { |
| joshualitt | 49586be | 2014-09-16 08:21:41 -0700 | [diff] [blame] | 207 | const GrConvolutionEffect& s = sBase.cast<GrConvolutionEffect>(); |
| bsalomon | 420d7e9 | 2014-10-16 09:18:09 -0700 | [diff] [blame] | 208 | return (this->radius() == s.radius() && |
| tomhudson@google.com | d0c1a06 | 2012-07-12 17:23:52 +0000 | [diff] [blame] | 209 | this->direction() == s.direction() && |
| senorblanco@chromium.org | e8232bc | 2013-07-29 18:45:44 +0000 | [diff] [blame] | 210 | this->useBounds() == s.useBounds() && |
| 211 | 0 == memcmp(fBounds, s.fBounds, sizeof(fBounds)) && |
| tomhudson@google.com | d0c1a06 | 2012-07-12 17:23:52 +0000 | [diff] [blame] | 212 | 0 == memcmp(fKernel, s.fKernel, this->width() * sizeof(float))); |
| tomhudson@google.com | d8f856c | 2012-05-10 12:13:36 +0000 | [diff] [blame] | 213 | } |
| bsalomon@google.com | 0a7672f | 2012-08-03 18:12:20 +0000 | [diff] [blame] | 214 | |
| 215 | /////////////////////////////////////////////////////////////////////////////// |
| 216 | |
| joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 217 | GR_DEFINE_FRAGMENT_PROCESSOR_TEST(GrConvolutionEffect); |
| bsalomon@google.com | 0a7672f | 2012-08-03 18:12:20 +0000 | [diff] [blame] | 218 | |
| bsalomon | c21b09e | 2015-08-28 18:46:56 -0700 | [diff] [blame] | 219 | const GrFragmentProcessor* GrConvolutionEffect::TestCreate(GrProcessorTestData* d) { |
| joshualitt | 0067ff5 | 2015-07-08 14:26:19 -0700 | [diff] [blame] | 220 | int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : |
| 221 | GrProcessorUnitTest::kAlphaTextureIdx; |
| 222 | Direction dir = d->fRandom->nextBool() ? kX_Direction : kY_Direction; |
| 223 | int radius = d->fRandom->nextRangeU(1, kMaxKernelRadius); |
| bungeman@google.com | 4348663 | 2013-08-20 15:20:34 +0000 | [diff] [blame] | 224 | float kernel[kMaxKernelWidth]; |
| 225 | for (size_t i = 0; i < SK_ARRAY_COUNT(kernel); ++i) { |
| joshualitt | 0067ff5 | 2015-07-08 14:26:19 -0700 | [diff] [blame] | 226 | kernel[i] = d->fRandom->nextSScalar1(); |
| bsalomon@google.com | 0a7672f | 2012-08-03 18:12:20 +0000 | [diff] [blame] | 227 | } |
| senorblanco@chromium.org | e8232bc | 2013-07-29 18:45:44 +0000 | [diff] [blame] | 228 | float bounds[2]; |
| bungeman@google.com | 4348663 | 2013-08-20 15:20:34 +0000 | [diff] [blame] | 229 | for (size_t i = 0; i < SK_ARRAY_COUNT(bounds); ++i) { |
| joshualitt | 0067ff5 | 2015-07-08 14:26:19 -0700 | [diff] [blame] | 230 | bounds[i] = d->fRandom->nextF(); |
| senorblanco@chromium.org | 194d775 | 2013-07-24 22:19:24 +0000 | [diff] [blame] | 231 | } |
| bsalomon@google.com | 0a7672f | 2012-08-03 18:12:20 +0000 | [diff] [blame] | 232 | |
| joshualitt | 0067ff5 | 2015-07-08 14:26:19 -0700 | [diff] [blame] | 233 | bool useBounds = d->fRandom->nextBool(); |
| bsalomon | 4a33952 | 2015-10-06 08:40:50 -0700 | [diff] [blame] | 234 | return GrConvolutionEffect::Create(d->fTextures[texIdx], |
| senorblanco@chromium.org | 194d775 | 2013-07-24 22:19:24 +0000 | [diff] [blame] | 235 | dir, |
| 236 | radius, |
| 237 | kernel, |
| senorblanco@chromium.org | e8232bc | 2013-07-29 18:45:44 +0000 | [diff] [blame] | 238 | useBounds, |
| 239 | bounds); |
| bsalomon@google.com | 0a7672f | 2012-08-03 18:12:20 +0000 | [diff] [blame] | 240 | } |