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_c_lib_autogen.h

Issue 14456004: GPU client side changes for GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glapi
Patch Set: Add missing parameter in GLES2Implementation ctor in GLES2Implementation unittest Created 7 years, 7 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
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f1a5b082f9adae82923c5d2fa5fe28735a1db409..6df6060359fe6ecd11f316a2a703dbc7cf481a5e 100644
--- a/gpu/command_buffer/client/gles2_c_lib_autogen.h
+++ b/gpu/command_buffer/client/gles2_c_lib_autogen.h
@@ -595,6 +595,12 @@ void* GLES2MapBufferCHROMIUM(GLuint target, GLenum access) {
GLboolean GLES2UnmapBufferCHROMIUM(GLuint target) {
return gles2::GetGLContext()->UnmapBufferCHROMIUM(target);
}
+void* GLES2MapImageCHROMIUM(GLuint image_id, GLenum access) {
+ return gles2::GetGLContext()->MapImageCHROMIUM(image_id, access);
+}
+void GLES2UnmapImageCHROMIUM(GLuint image_id) {
+ gles2::GetGLContext()->UnmapImageCHROMIUM(image_id);
+}
void* GLES2MapBufferSubDataCHROMIUM(
GLuint target, GLintptr offset, GLsizeiptr size, GLenum access) {
return gles2::GetGLContext()->MapBufferSubDataCHROMIUM(
@@ -639,6 +645,18 @@ GLuint GLES2CreateStreamTextureCHROMIUM(GLuint texture) {
void GLES2DestroyStreamTextureCHROMIUM(GLuint texture) {
gles2::GetGLContext()->DestroyStreamTextureCHROMIUM(texture);
}
+GLuint GLES2CreateImageCHROMIUM(
+ GLsizei width, GLsizei height, GLenum internalformat) {
+ return gles2::GetGLContext()->CreateImageCHROMIUM(
+ width, height, internalformat);
+}
+void GLES2DestroyImageCHROMIUM(GLuint image_id) {
+ gles2::GetGLContext()->DestroyImageCHROMIUM(image_id);
+}
+void GLES2GetImageParameterivCHROMIUM(
+ GLuint image_id, GLenum pname, GLint* params) {
+ gles2::GetGLContext()->GetImageParameterivCHROMIUM(image_id, pname, params);
+}
void GLES2GetTranslatedShaderSourceANGLE(
GLuint shader, GLsizei bufsize, GLsizei* length, char* source) {
gles2::GetGLContext()->GetTranslatedShaderSourceANGLE(
@@ -1006,6 +1024,10 @@ NameToFunc g_gles2_function_table[] = {
glMapBufferCHROMIUM), },
{ "glUnmapBufferCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
glUnmapBufferCHROMIUM), },
+ { "glMapImageCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
+ glMapImageCHROMIUM), },
+ { "glUnmapImageCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
+ glUnmapImageCHROMIUM), },
{ "glMapBufferSubDataCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
glMapBufferSubDataCHROMIUM), },
{ "glUnmapBufferSubDataCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
@@ -1028,6 +1050,12 @@ NameToFunc g_gles2_function_table[] = {
glCreateStreamTextureCHROMIUM), },
{ "glDestroyStreamTextureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
glDestroyStreamTextureCHROMIUM), },
+ { "glCreateImageCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
+ glCreateImageCHROMIUM), },
+ { "glDestroyImageCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
+ glDestroyImageCHROMIUM), },
+ { "glGetImageParameterivCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
+ glGetImageParameterivCHROMIUM), },
{ "glGetTranslatedShaderSourceANGLE", reinterpret_cast<GLES2FunctionPointer>(
glGetTranslatedShaderSourceANGLE), },
{ "glPostSubBufferCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698