summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc17
-rw-r--r--chrome/renderer/webgraphicscontext3d_command_buffer_impl.h8
-rw-r--r--webkit/gpu/webgraphicscontext3d_in_process_impl.cc11
-rw-r--r--webkit/gpu/webgraphicscontext3d_in_process_impl.h8
4 files changed, 44 insertions, 0 deletions
diff --git a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
index da0130e..1d8e5d6 100644
--- a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
+++ b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
@@ -387,6 +387,23 @@ void WebGraphicsContext3DCommandBufferImpl::requestExtensionCHROMIUM(
glRequestExtensionCHROMIUM(extension);
}
+void WebGraphicsContext3DCommandBufferImpl::blitFramebufferCHROMIUM(
+ int srcX0, int srcY0, int srcX1, int srcY1,
+ int dstX0, int dstY0, int dstX1, int dstY1,
+ unsigned mask, unsigned filter) {
+ glBlitFramebufferEXT(srcX0, srcY0, srcX1, srcY1,
+ dstX0, dstY0, dstX1, dstY1,
+ mask, filter);
+}
+
+void WebGraphicsContext3DCommandBufferImpl::
+ renderbufferStorageMultisampleCHROMIUM(
+ unsigned long target, int samples, unsigned internalformat,
+ unsigned width, unsigned height) {
+ glRenderbufferStorageMultisampleEXT(target, samples, internalformat,
+ width, height);
+}
+
// Helper macros to reduce the amount of code.
#define DELEGATE_TO_GL(name, glname) \
diff --git a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.h b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.h
index 94539a1..4d92240 100644
--- a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.h
+++ b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.h
@@ -364,6 +364,14 @@ class WebGraphicsContext3DCommandBufferImpl
virtual WebKit::WebString getRequestableExtensionsCHROMIUM();
virtual void requestExtensionCHROMIUM(const char*);
+ virtual void blitFramebufferCHROMIUM(
+ int srcX0, int srcY0, int srcX1, int srcY1,
+ int dstX0, int dstY0, int dstX1, int dstY1,
+ unsigned mask, unsigned filter);
+ virtual void renderbufferStorageMultisampleCHROMIUM(
+ unsigned long target, int samples, unsigned internalformat,
+ unsigned width, unsigned height);
+
virtual unsigned createCompositorTexture(unsigned width, unsigned height);
virtual void deleteCompositorTexture(unsigned parent_texture);
virtual void copyTextureToCompositor(unsigned texture,
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
index 4b45e3027..e8f905a 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
+++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
@@ -672,6 +672,17 @@ WebString WebGraphicsContext3DInProcessImpl::
void WebGraphicsContext3DInProcessImpl::requestExtensionCHROMIUM(const char*) {
}
+void WebGraphicsContext3DInProcessImpl::blitFramebufferCHROMIUM(
+ int srcX0, int srcY0, int srcX1, int srcY1,
+ int dstX0, int dstY0, int dstX1, int dstY1,
+ unsigned mask, unsigned filter) {
+}
+
+void WebGraphicsContext3DInProcessImpl::renderbufferStorageMultisampleCHROMIUM(
+ unsigned long target, int samples, unsigned internalformat,
+ unsigned width, unsigned height) {
+}
+
// Helper macros to reduce the amount of code.
#define DELEGATE_TO_GL(name, glname) \
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.h b/webkit/gpu/webgraphicscontext3d_in_process_impl.h
index 234879d..6113157 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_impl.h
+++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.h
@@ -75,6 +75,14 @@ class WebGraphicsContext3DInProcessImpl : public WebKit::WebGraphicsContext3D {
virtual WebKit::WebString getRequestableExtensionsCHROMIUM();
virtual void requestExtensionCHROMIUM(const char*);
+ virtual void blitFramebufferCHROMIUM(
+ int srcX0, int srcY0, int srcX1, int srcY1,
+ int dstX0, int dstY0, int dstX1, int dstY1,
+ unsigned mask, unsigned filter);
+ virtual void renderbufferStorageMultisampleCHROMIUM(
+ unsigned long target, int samples, unsigned internalformat,
+ unsigned width, unsigned height);
+
virtual void activeTexture(unsigned long texture);
virtual void attachShader(WebKit::WebGLId program, WebKit::WebGLId shader);
virtual void bindAttribLocation(