diff options
| author | dspringer@google.com <dspringer@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-23 18:00:07 +0000 |
|---|---|---|
| committer | dspringer@google.com <dspringer@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-23 18:00:07 +0000 |
| commit | 1aef9813f6edaead72c9dfe24ccd07ec525c75b3 (patch) | |
| tree | 9cd13cab509d4e9d32d63b043a0c8132b7033cce /chrome/browser/renderer_host/render_widget_host_view_mac.h | |
| parent | bcc3a0cb7f900dda0b4065055f3539c01f901df2 (diff) | |
| download | chromium_src-1aef9813f6edaead72c9dfe24ccd07ec525c75b3.zip chromium_src-1aef9813f6edaead72c9dfe24ccd07ec525c75b3.tar.gz chromium_src-1aef9813f6edaead72c9dfe24ccd07ec525c75b3.tar.bz2 | |
Add 3D support for the Mac on Leopard (OS X 10.5) and earlier. This CL uses
FBO rendering with glGetTexImage() into a TransportDIB that is then used as
a texture for rendering the final image in the render view in the browser.
While not optimal, it works and can be optimized later, after the new GPU
process work is completed.
This CL also enables stencil buffer support on the Mac. All the Pepper3D
demos run on the Mac with these changes.
BUG=none
TEST=3D rendering unit tests.
Review URL: http://codereview.chromium.org/647043
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39744 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/render_widget_host_view_mac.h')
| -rw-r--r-- | chrome/browser/renderer_host/render_widget_host_view_mac.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host_view_mac.h b/chrome/browser/renderer_host/render_widget_host_view_mac.h index 332263e..db0c381 100644 --- a/chrome/browser/renderer_host/render_widget_host_view_mac.h +++ b/chrome/browser/renderer_host/render_widget_host_view_mac.h @@ -124,6 +124,10 @@ class RenderWidgetHostViewMac : public RenderWidgetHostView { int32 width, int32 height, uint64 io_surface_identifier); + virtual void GPUPluginSetTransportDIB(gfx::PluginWindowHandle window, + int32 width, + int32 height, + TransportDIB::Handle transport_dib); virtual void GPUPluginBuffersSwapped(gfx::PluginWindowHandle window); // Draws the current GPU plugin instances into the given context. virtual void DrawGPUPluginInstances(CGLContextObj context); |
