GaussianBlur: make short constructor call the longer one

PiperOrigin-RevId: 597212434
This commit is contained in:
tofunmi 2024-01-10 04:39:04 -08:00 committed by Copybara-Service
parent 3596bc332d
commit 51d60e1f3a
2 changed files with 5 additions and 5 deletions

View file

@ -15,7 +15,10 @@
precision highp float;
varying vec2 vTexSamplingCoord;
// Center position of the function in the lookup texture.
uniform vec2 uFunctionLookupCenter;
uniform sampler2D uTexSampler;
uniform sampler2D uFunctionLookupSampler;
// 1D function LUT, only 2D due to OpenGL ES 2.0 limitations.
uniform int uIsHorizontal;
// Size of one texel in the source image, along the axis of interest.
@ -32,9 +35,6 @@ uniform float uConvWidthTexels;
// Need to be able convert steps in source texels to steps in the function
// lookup texture.
uniform float uFunctionLookupStepSize;
// Center position of the function in the lookup texture.
uniform vec2 uFunctionLookupCenter;
uniform sampler2D uFunctionLookupSampler;
// Reference Implementation:
void main() {

View file

@ -50,8 +50,8 @@ public final class GaussianBlur extends SeparableConvolution {
* @param sigma The half-width of 1 standard deviation, in pixels.
*/
public GaussianBlur(float sigma) {
this.sigma = sigma;
this.numStandardDeviations = 2.0f;
this(sigma, /* numStandardDeviations= */ 2.0f);
;
}
@Override