Home
last modified time | relevance | path

Searched refs:kernelWidth (Results 1 – 6 of 6) sorted by relevance

/external/webkit/Source/WebCore/platform/graphics/gpu/
DConvolutionShader.cpp42 ConvolutionShader::ConvolutionShader(GraphicsContext3D* context, unsigned program, int kernelWidth) in ConvolutionShader() argument
44 , m_kernelWidth(kernelWidth) in ConvolutionShader()
54 PassOwnPtr<ConvolutionShader> ConvolutionShader::create(GraphicsContext3D* context, int kernelWidth) in create() argument
71 snprintf(vertexShaderSource, sizeof(vertexShaderSource), vertexShaderRaw, kernelWidth); in create()
91 snprintf(fragmentShaderSource, sizeof(fragmentShaderSource), fragmentShaderRaw, kernelWidth); in create()
96 return new ConvolutionShader(context, program, kernelWidth); in create()
99 …ansform, const AffineTransform& texTransform, const float* kernel, int kernelWidth, float imageInc… in use() argument
115 if (kernelWidth > m_kernelWidth) in use()
116 kernelWidth = m_kernelWidth; in use()
117 m_context->uniform1fv(m_kernelLocation, const_cast<float*>(kernel), kernelWidth); in use()
DConvolutionShader.h40 static PassOwnPtr<ConvolutionShader> create(GraphicsContext3D*, int kernelWidth);
42 …nsform&, const AffineTransform& texTransform, const float* kernel, int kernelWidth, float imageInc…
45 ConvolutionShader(GraphicsContext3D*, unsigned program, int kernelWidth);
DSharedGraphicsContext3D.cpp406 …ansform, const AffineTransform& texTransform, const float* kernel, int kernelWidth, float imageInc… in useConvolutionProgram() argument
408 ASSERT(kernelWidth >= 1 && kernelWidth <= cMaxKernelWidth); in useConvolutionProgram()
409 …m_convolutionShaders[kernelWidth - 1]->use(transform, texTransform, kernel, kernelWidth, imageIncr… in useConvolutionProgram()
DSharedGraphicsContext3D.h113 …nsform&, const AffineTransform& texTransform, const float* kernel, int kernelWidth, float imageInc…
/external/webkit/Source/WebCore/platform/graphics/chromium/
DGLES2Canvas.cpp448 …& srcRect, const FloatRect& dstRect, float imageIncrement[2], const float* kernel, int kernelWidth) in convolveRect() argument
466 m_context->useConvolutionProgram(matrix, texMatrix, kernel, kernelWidth, imageIncrement); in convolveRect()
476 static void buildKernel(float sigma, float* kernel, int kernelWidth) in buildKernel() argument
478 float halfWidth = (kernelWidth - 1.0f) / 2.0f; in buildKernel()
480 for (int i = 0; i < kernelWidth; ++i) { in buildKernel()
486 for (int i = 0; i < kernelWidth; ++i) in buildKernel()
822 int kernelWidth = halfWidth * 2 + 1; in endShadowDraw() local
823 OwnArrayPtr<float> kernel = adoptArrayPtr(new float[kernelWidth]); in endShadowDraw()
824 buildKernel(sigma, kernel.get(), kernelWidth); in endShadowDraw()
827 scissorClear(srcRect.maxX(), srcRect.y(), kernelWidth, srcRect.height()); in endShadowDraw()
[all …]
DGLES2Canvas.h108 … srcRect, const FloatRect& dstRect, float imageIncrement[2], const float* kernel, int kernelWidth);