From b6dbdc0de37f2a7efc4e936e416319c164aed7af Mon Sep 17 00:00:00 2001 From: "kbr@chromium.org" Date: Wed, 26 Jan 2011 02:34:05 +0000 Subject: Add GL_CHROMIUM_framebuffer_multisample support to Chromium's WebGraphicsContext3D implementations. (The GL_EXT_framebuffer_multisample and GL_ANGLE_framebuffer_multisample extensions are advertised in Chrome's command buffer implementation as GL_CHROMIUM_framebuffer_multisample.) Tested manually in WebKit with accelerated 2D canvas with multisampling turned on. This must land before the associated WebKit patch. BUG=none TEST=none Review URL: http://codereview.chromium.org/6369016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72596 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/gpu/webgraphicscontext3d_in_process_impl.cc | 11 +++++++++++ webkit/gpu/webgraphicscontext3d_in_process_impl.h | 8 ++++++++ 2 files changed, 19 insertions(+) (limited to 'webkit/gpu') 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( -- cgit v1.1