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

Unified Diff: mojo/gpu/mojo_gles2_impl_autogen.cc

Issue 1338433002: Mandoline: Add WebGL support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change --enable-webgl to --disable-webgl Created 5 years, 3 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: 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 55e8ba6f45492c6b16630307fdb2dc071fb7e30e..f743c62086b404145ed58b7c26e2abe31caf2d1a 100644
--- a/mojo/gpu/mojo_gles2_impl_autogen.cc
+++ b/mojo/gpu/mojo_gles2_impl_autogen.cc
@@ -12,6 +12,7 @@
#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_framebuffer_multisample.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"
@@ -1221,7 +1222,9 @@ void MojoGLES2Impl::BlitFramebufferCHROMIUM(GLint srcX0,
GLint dstY1,
GLbitfield mask,
GLenum filter) {
- NOTREACHED() << "Unimplemented BlitFramebufferCHROMIUM.";
+ MojoGLES2MakeCurrent(context_);
+ glBlitFramebufferCHROMIUM(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1,
+ dstY1, mask, filter);
}
void MojoGLES2Impl::RenderbufferStorageMultisampleCHROMIUM(
GLenum target,
@@ -1229,7 +1232,9 @@ void MojoGLES2Impl::RenderbufferStorageMultisampleCHROMIUM(
GLenum internalformat,
GLsizei width,
GLsizei height) {
- NOTREACHED() << "Unimplemented RenderbufferStorageMultisampleCHROMIUM.";
+ MojoGLES2MakeCurrent(context_);
+ glRenderbufferStorageMultisampleCHROMIUM(target, samples, internalformat,
+ width, height);
}
void MojoGLES2Impl::RenderbufferStorageMultisampleEXT(GLenum target,
GLsizei samples,

Powered by Google App Engine
This is Rietveld 408576698