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..6ad46f874d28e85dd83bc6bd8e26cb6f9ebe3714 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 sync_uint = ToGLuint(sync); |
+ if (!GetIdHandler(id_namespaces::kSyncs)->FreeIds( |
+ this, 1, &sync_uint, &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) { |