| 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..f8120475b099032b7d1d810d6098a43f7fe341cf 100644
|
| --- a/mojo/gpu/mojo_gles2_impl_autogen.cc
|
| +++ b/mojo/gpu/mojo_gles2_impl_autogen.cc
|
| @@ -11,7 +11,10 @@
|
| #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_pixel_transfer_buffer_object.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"
|
| #include "third_party/mojo/src/mojo/public/c/gles2/chromium_texture_mailbox.h"
|
| @@ -1317,12 +1320,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 +1412,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 +1451,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 +1463,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 +1539,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) {
|
|
|