diff options
author | kbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-26 02:34:05 +0000 |
---|---|---|
committer | kbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-26 02:34:05 +0000 |
commit | b6dbdc0de37f2a7efc4e936e416319c164aed7af (patch) | |
tree | 793defc05b9ad2fd3555eaa06e52784f7a3892da /webkit/gpu | |
parent | 51dc466c1221560541a9eac02c1d1b72ff37ea90 (diff) | |
download | chromium_src-b6dbdc0de37f2a7efc4e936e416319c164aed7af.zip chromium_src-b6dbdc0de37f2a7efc4e936e416319c164aed7af.tar.gz chromium_src-b6dbdc0de37f2a7efc4e936e416319c164aed7af.tar.bz2 |
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
Diffstat (limited to 'webkit/gpu')
-rw-r--r-- | webkit/gpu/webgraphicscontext3d_in_process_impl.cc | 11 | ||||
-rw-r--r-- | webkit/gpu/webgraphicscontext3d_in_process_impl.h | 8 |
2 files changed, 19 insertions, 0 deletions
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( |