Chromium Code Reviews| 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 d72b3f53fc01364c693ad11abcd97d099db558dd..0ab20ea6e045370cd34e9260751aaeaa41e3de3c 100644 |
| --- a/gpu/command_buffer/client/gles2_implementation.cc |
| +++ b/gpu/command_buffer/client/gles2_implementation.cc |
| @@ -976,6 +976,20 @@ void GLES2Implementation::DeleteShaderStub( |
| helper_->DeleteShader(shaders[0]); |
| } |
| +void GLES2Implementation::DeleteSyncHelper(GLsync sync) { |
| + GLuint my_sync = ToGLuint(sync); |
|
piman
2015/01/22 00:49:32
nit: anything better than my_?
Maybe uint_sync?
Zhenyao Mo
2015/01/22 01:12:57
Done.
|
| + if (!GetIdHandler(id_namespaces::kSyncs)->FreeIds( |
| + this, 1, &my_sync, &GLES2Implementation::DeleteSyncStub)) { |
| + SetGLError( |
| + GL_INVALID_VALUE, |
| + "glDeleteSync", "id not created by this context."); |
| + } |
| +} |
| + |
| +void GLES2Implementation::DeleteSyncStub(GLsizei n, const GLuint* syncs) { |
| + DCHECK_EQ(1, n); |
| + helper_->DeleteSync(syncs[0]); |
| +} |
| GLint GLES2Implementation::GetAttribLocationHelper( |
| GLuint program, const char* name) { |