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

Unified Diff: gpu/command_buffer/client/gles2_c_lib_autogen.h

Issue 12210129: gpu: Add the ability to wait on upload completion. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added entry point for waiting. Rebased and added test. Created 7 years, 10 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_c_lib_autogen.h
diff --git a/gpu/command_buffer/client/gles2_c_lib_autogen.h b/gpu/command_buffer/client/gles2_c_lib_autogen.h
index 80a4d230ad4b82abbaa82f2c328286b9d89da329..bc44c2a280420ebc100c05ff4233ce1723b00599 100644
--- a/gpu/command_buffer/client/gles2_c_lib_autogen.h
+++ b/gpu/command_buffer/client/gles2_c_lib_autogen.h
@@ -711,6 +711,9 @@ void GLES2AsyncTexImage2DCHROMIUM(
target, level, internalformat, width, height, border, format, type,
pixels);
}
+void GLES2WaitAsyncTexImage2DCHROMIUM(GLenum target) {
+ gles2::GetGLContext()->WaitAsyncTexImage2DCHROMIUM(target);
+}
void GLES2DiscardFramebufferEXT(
GLenum target, GLsizei count, const GLenum* attachments) {
gles2::GetGLContext()->DiscardFramebufferEXT(target, count, attachments);
@@ -1052,6 +1055,8 @@ NameToFunc g_gles2_function_table[] = {
glAsyncTexSubImage2DCHROMIUM), },
{ "glAsyncTexImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
glAsyncTexImage2DCHROMIUM), },
+ { "glWaitAsyncTexImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
+ glWaitAsyncTexImage2DCHROMIUM), },
{ "glDiscardFramebufferEXT", reinterpret_cast<GLES2FunctionPointer>(
glDiscardFramebufferEXT), },
{ "glLoseContextCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(

Powered by Google App Engine
This is Rietveld 408576698