| Index: gpu/command_buffer/client/gles2_implementation.cc
|
| diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
|
| index 2dd95ec410850613d8279ef3ba12b7d0bb884469..59385241e5c89526420ceda1fd8c50d75fc050b1 100644
|
| --- a/gpu/command_buffer/client/gles2_implementation.cc
|
| +++ b/gpu/command_buffer/client/gles2_implementation.cc
|
| @@ -747,6 +747,33 @@ bool GLES2Implementation::GetInternalformativHelper(
|
| return false;
|
| }
|
|
|
| +bool GLES2Implementation::GetSyncivHelper(
|
| + GLsync sync, GLenum pname, GLsizei bufsize, GLsizei* length,
|
| + GLint* values) {
|
| + GLint value = 0;
|
| + switch (pname) {
|
| + case GL_OBJECT_TYPE:
|
| + value = GL_SYNC_FENCE;
|
| + break;
|
| + case GL_SYNC_CONDITION:
|
| + value = GL_SYNC_GPU_COMMANDS_COMPLETE;
|
| + break;
|
| + case GL_SYNC_FLAGS:
|
| + value = 0;
|
| + break;
|
| + default:
|
| + return false;
|
| + }
|
| + if (bufsize > 0) {
|
| + DCHECK(values);
|
| + *values = value;
|
| + }
|
| + if (length) {
|
| + *length = 1;
|
| + }
|
| + return true;
|
| +}
|
| +
|
| GLuint GLES2Implementation::GetMaxValueInBufferCHROMIUMHelper(
|
| GLuint buffer_id, GLsizei count, GLenum type, GLuint offset) {
|
| typedef cmds::GetMaxValueInBufferCHROMIUM::Result Result;
|
|
|