Chromium Code Reviews| Index: gpu/command_buffer/service/gles2_cmd_decoder.cc |
| diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
| index f97710e86a61009ce7b6b54517f63040d5f8cb3b..edab3d37ccb78210ada8a4acc01354f6ab0577f6 100644 |
| --- a/gpu/command_buffer/service/gles2_cmd_decoder.cc |
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
| @@ -1473,6 +1473,11 @@ class GLES2DecoderImpl : public GLES2Decoder, |
| // Wrapper for glReleaseShaderCompiler. |
| void DoReleaseShaderCompiler() { } |
| + // Wrappers for glSamplerParameter*v functions. |
| + void DoSamplerParameterfv( |
| + GLuint sampler, GLenum pname, const GLfloat* params); |
| + void DoSamplerParameteriv(GLuint sampler, GLenum pname, const GLint* params); |
| + |
| // Wrappers for glTexParameter functions. |
| void DoTexParameterf(GLenum target, GLenum pname, GLfloat param); |
| void DoTexParameteri(GLenum target, GLenum pname, GLint param); |
| @@ -5858,6 +5863,18 @@ void GLES2DecoderImpl::DoLinkProgram(GLuint program_id) { |
| ExitCommandProcessingEarly(); |
| }; |
| +void GLES2DecoderImpl::DoSamplerParameterfv( |
| + GLuint sampler, GLenum pname, const GLfloat* params) { |
|
piman
2015/01/09 07:10:57
These 2 methods need to be disabled if !unsafe_es3
Zhenyao Mo
2015/01/09 17:45:27
The check happens in Handle* function, which is th
|
| + DCHECK(params); |
| + glSamplerParameterf(sampler, pname, params[0]); |
|
Zhenyao Mo
2014/12/10 01:59:12
This is use glSamplerParameterf to implement glSam
|
| +} |
| + |
| +void GLES2DecoderImpl::DoSamplerParameteriv( |
| + GLuint sampler, GLenum pname, const GLint* params) { |
| + DCHECK(params); |
| + glSamplerParameteri(sampler, pname, params[0]); |
|
Zhenyao Mo
2014/12/10 01:59:12
This is use glSamplerParameteri to implement glSam
|
| +} |
| + |
| void GLES2DecoderImpl::DoTexParameterf( |
| GLenum target, GLenum pname, GLfloat param) { |
| TextureRef* texture = texture_manager()->GetTextureInfoForTarget( |