Index: mojo/gpu/mojo_gles2_impl_autogen.cc |
diff --git a/mojo/gpu/mojo_gles2_impl_autogen.cc b/mojo/gpu/mojo_gles2_impl_autogen.cc |
index f3d01316a0926ec4c5573674ce10651b0b5dcb73..99a6e4c7c4b7bbb0b9b4da558123c73ff8a9029d 100644 |
--- a/mojo/gpu/mojo_gles2_impl_autogen.cc |
+++ b/mojo/gpu/mojo_gles2_impl_autogen.cc |
@@ -11,6 +11,8 @@ |
#include "mojo/gpu/mojo_gles2_impl_autogen.h" |
#include "base/logging.h" |
+#include "third_party/mojo/src/mojo/public/c/gles2/chromium_copy_texture.h" |
+#include "third_party/mojo/src/mojo/public/c/gles2/chromium_image.h" |
#include "third_party/mojo/src/mojo/public/c/gles2/chromium_miscellaneous.h" |
#include "third_party/mojo/src/mojo/public/c/gles2/chromium_sub_image.h" |
#include "third_party/mojo/src/mojo/public/c/gles2/chromium_sync_point.h" |
@@ -1317,12 +1319,12 @@ GLboolean MojoGLES2Impl::EnableFeatureCHROMIUM(const char* feature) { |
return 0; |
} |
void* MojoGLES2Impl::MapBufferCHROMIUM(GLuint target, GLenum access) { |
- NOTREACHED() << "Unimplemented MapBufferCHROMIUM."; |
- return 0; |
+ MojoGLES2MakeCurrent(context_); |
+ return glMapBufferCHROMIUM(target, access); |
} |
GLboolean MojoGLES2Impl::UnmapBufferCHROMIUM(GLuint target) { |
- NOTREACHED() << "Unimplemented UnmapBufferCHROMIUM."; |
- return 0; |
+ MojoGLES2MakeCurrent(context_); |
+ return glUnmapBufferCHROMIUM(target); |
} |
void* MojoGLES2Impl::MapBufferSubDataCHROMIUM(GLuint target, |
GLintptr offset, |
@@ -1409,18 +1411,20 @@ GLuint MojoGLES2Impl::CreateImageCHROMIUM(ClientBuffer buffer, |
GLsizei width, |
GLsizei height, |
GLenum internalformat) { |
- NOTREACHED() << "Unimplemented CreateImageCHROMIUM."; |
- return 0; |
+ MojoGLES2MakeCurrent(context_); |
+ return glCreateImageCHROMIUM(buffer, width, height, internalformat); |
} |
void MojoGLES2Impl::DestroyImageCHROMIUM(GLuint image_id) { |
- NOTREACHED() << "Unimplemented DestroyImageCHROMIUM."; |
+ MojoGLES2MakeCurrent(context_); |
+ glDestroyImageCHROMIUM(image_id); |
} |
GLuint MojoGLES2Impl::CreateGpuMemoryBufferImageCHROMIUM(GLsizei width, |
GLsizei height, |
GLenum internalformat, |
GLenum usage) { |
- NOTREACHED() << "Unimplemented CreateGpuMemoryBufferImageCHROMIUM."; |
- return 0; |
+ MojoGLES2MakeCurrent(context_); |
+ return glCreateGpuMemoryBufferImageCHROMIUM(width, height, internalformat, |
+ usage); |
} |
void MojoGLES2Impl::GetTranslatedShaderSourceANGLE(GLuint shader, |
GLsizei bufsize, |
@@ -1446,7 +1450,8 @@ void MojoGLES2Impl::CopyTextureCHROMIUM(GLenum target, |
GLenum dest_id, |
GLint internalformat, |
GLenum dest_type) { |
- NOTREACHED() << "Unimplemented CopyTextureCHROMIUM."; |
+ MojoGLES2MakeCurrent(context_); |
+ glCopyTextureCHROMIUM(target, source_id, dest_id, internalformat, dest_type); |
} |
void MojoGLES2Impl::CopySubTextureCHROMIUM(GLenum target, |
GLenum source_id, |
@@ -1457,7 +1462,9 @@ void MojoGLES2Impl::CopySubTextureCHROMIUM(GLenum target, |
GLint y, |
GLsizei width, |
GLsizei height) { |
- NOTREACHED() << "Unimplemented CopySubTextureCHROMIUM."; |
+ MojoGLES2MakeCurrent(context_); |
+ glCopySubTextureCHROMIUM(target, source_id, dest_id, xoffset, yoffset, x, y, |
+ width, height); |
} |
void MojoGLES2Impl::DrawArraysInstancedANGLE(GLenum mode, |
GLint first, |
@@ -1531,10 +1538,12 @@ void MojoGLES2Impl::UniformValuebufferCHROMIUM(GLint location, |
NOTREACHED() << "Unimplemented UniformValuebufferCHROMIUM."; |
} |
void MojoGLES2Impl::BindTexImage2DCHROMIUM(GLenum target, GLint imageId) { |
- NOTREACHED() << "Unimplemented BindTexImage2DCHROMIUM."; |
+ MojoGLES2MakeCurrent(context_); |
+ glBindTexImage2DCHROMIUM(target, imageId); |
} |
void MojoGLES2Impl::ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) { |
- NOTREACHED() << "Unimplemented ReleaseTexImage2DCHROMIUM."; |
+ MojoGLES2MakeCurrent(context_); |
+ glReleaseTexImage2DCHROMIUM(target, imageId); |
} |
void MojoGLES2Impl::TraceBeginCHROMIUM(const char* category_name, |
const char* trace_name) { |
@@ -1552,7 +1561,9 @@ void MojoGLES2Impl::AsyncTexSubImage2DCHROMIUM(GLenum target, |
GLenum format, |
GLenum type, |
const void* data) { |
- NOTREACHED() << "Unimplemented AsyncTexSubImage2DCHROMIUM."; |
+ MojoGLES2MakeCurrent(context_); |
+ glAsyncTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width, height, |
+ format, type, data); |
} |
void MojoGLES2Impl::AsyncTexImage2DCHROMIUM(GLenum target, |
GLint level, |
@@ -1563,13 +1574,17 @@ void MojoGLES2Impl::AsyncTexImage2DCHROMIUM(GLenum target, |
GLenum format, |
GLenum type, |
const void* pixels) { |
- NOTREACHED() << "Unimplemented AsyncTexImage2DCHROMIUM."; |
+ MojoGLES2MakeCurrent(context_); |
+ glAsyncTexImage2DCHROMIUM(target, level, internalformat, width, height, |
+ border, format, type, pixels); |
} |
void MojoGLES2Impl::WaitAsyncTexImage2DCHROMIUM(GLenum target) { |
- NOTREACHED() << "Unimplemented WaitAsyncTexImage2DCHROMIUM."; |
+ MojoGLES2MakeCurrent(context_); |
+ glWaitAsyncTexImage2DCHROMIUM(target); |
} |
void MojoGLES2Impl::WaitAllAsyncTexImage2DCHROMIUM() { |
- NOTREACHED() << "Unimplemented WaitAllAsyncTexImage2DCHROMIUM."; |
+ MojoGLES2MakeCurrent(context_); |
+ glWaitAllAsyncTexImage2DCHROMIUM(); |
} |
void MojoGLES2Impl::DiscardFramebufferEXT(GLenum target, |
GLsizei count, |