Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 859043005: Add Sync related APIs to GPU command buffer: Part I (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make win bots happy Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.h ('k') | gpu/command_buffer/client/gles2_implementation_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698