diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-25 22:08:35 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-25 22:08:35 +0000 |
commit | 6217d397bf501ec1ec5b7270d493006badd4d87a (patch) | |
tree | fce6c8e9c15b79bab29a9535ce9929dd9d53735b /chrome/renderer/render_widget.h | |
parent | 21dedcc12d21ccb288244249522d77bc074c501e (diff) | |
download | chromium_src-6217d397bf501ec1ec5b7270d493006badd4d87a.zip chromium_src-6217d397bf501ec1ec5b7270d493006badd4d87a.tar.gz chromium_src-6217d397bf501ec1ec5b7270d493006badd4d87a.tar.bz2 |
Calling OpenGL from the renderer process
- Added ability for renderer processes to render to a real window (Windows only so far).
- Added ability to create offscreen frame buffer objects that can be resized later.
- OpenGL context can have a "parent" context that can access its last swapped back buffer through a texture ID.
- Moved code to establish GPU channel from RenderWidget to RenderThread.
- Changed way service size command buffer object lifetimes are managed.
TEST=trybot and visual verification that OpenGL can clear the browser window to magenta.
BUG=none
Review URL: http://codereview.chromium.org/1136006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42679 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_widget.h')
-rw-r--r-- | chrome/renderer/render_widget.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/chrome/renderer/render_widget.h b/chrome/renderer/render_widget.h index 4759e30..4781790 100644 --- a/chrome/renderer/render_widget.h +++ b/chrome/renderer/render_widget.h @@ -10,7 +10,6 @@ #include "base/basictypes.h" #include "base/ref_counted.h" #include "base/shared_memory.h" -#include "chrome/renderer/gpu_channel_host.h" #include "chrome/renderer/paint_aggregator.h" #include "chrome/renderer/render_process.h" #include "gfx/native_widget_types.h" @@ -18,7 +17,6 @@ #include "gfx/rect.h" #include "gfx/size.h" #include "ipc/ipc_channel.h" -#include "ipc/ipc_channel_handle.h" #include "skia/ext/platform_canvas.h" #include "third_party/skia/include/core/SkBitmap.h" #include "third_party/WebKit/WebKit/chromium/public/WebCompositionCommand.h" @@ -107,15 +105,6 @@ class RenderWidget : public IPC::Channel::Listener, // Close the underlying WebWidget. virtual void Close(); - // Asynchronously establish a channel to the GPU plugin if not previously - // established or if it has been lost (for example if the GPU plugin crashed). - // Use GetGpuChannel() to determine when the channel is ready for use. - void EstablishGpuChannel(); - - // Get the GPU channel. Returns NULL if the channel is not established or - // has been lost. - GpuChannelHost* GetGpuChannel(); - protected: // Friend RefCounted so that the dtor can be non-public. Using this class // without ref-counting is an error. @@ -171,7 +160,6 @@ class RenderWidget : public IPC::Channel::Listener, const string16& ime_string); void OnMsgRepaint(const gfx::Size& size_to_paint); void OnSetTextDirection(WebKit::WebTextDirection direction); - void OnGpuChannelEstablished(const IPC::ChannelHandle& channel_handle); // Override point to notify derived classes that a paint has happened. // DidInitiatePaint happens when we've generated a new bitmap and sent it to @@ -332,9 +320,6 @@ class RenderWidget : public IPC::Channel::Listener, // Indicates if the next sequence of Char events should be suppressed or not. bool suppress_next_char_events_; - // The channel from the renderer process to the GPU process. - scoped_refptr<GpuChannelHost> gpu_channel_; - DISALLOW_COPY_AND_ASSIGN(RenderWidget); }; |