| Index: content/renderer/render_widget.h
|
| diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
|
| index a3ce7b069ab95cd5274fcb2942a7a94eff839b2e..cb9ae4552521ff428ae88fd457d111bbcdc7a400 100644
|
| --- a/content/renderer/render_widget.h
|
| +++ b/content/renderer/render_widget.h
|
| @@ -122,6 +122,11 @@ class RenderWidget : public IPC::Channel::Listener,
|
| // Close the underlying WebWidget.
|
| virtual void Close();
|
|
|
| + // TODO(backer): Where does this go? is it public?
|
| + gfx::PluginWindowHandle compositing_surface() const {
|
| + return compositing_surface_;
|
| + }
|
| +
|
| protected:
|
| // Friend RefCounted so that the dtor can be non-public. Using this class
|
| // without ref-counting is an error.
|
| @@ -143,7 +148,8 @@ class RenderWidget : public IPC::Channel::Listener,
|
| IPC::SyncMessage* create_widget_message);
|
|
|
| // Finishes creation of a pending view started with Init.
|
| - void CompleteInit(gfx::NativeViewId parent);
|
| + void CompleteInit(gfx::NativeViewId parent,
|
| + gfx::PluginWindowHandle compositing_surface);
|
|
|
| // Paints the given rectangular region of the WebWidget into canvas (a
|
| // shared memory segment returned by AllocPaintBuf on Windows). The caller
|
| @@ -168,7 +174,8 @@ class RenderWidget : public IPC::Channel::Listener,
|
|
|
| // RenderWidget IPC message handlers
|
| void OnClose();
|
| - void OnCreatingNewAck(gfx::NativeViewId parent);
|
| + void OnCreatingNewAck(gfx::NativeViewId parent,
|
| + gfx::PluginWindowHandle compositing_surface);
|
| virtual void OnResize(const gfx::Size& new_size,
|
| const gfx::Rect& resizer_rect);
|
| virtual void OnWasHidden();
|
| @@ -366,6 +373,10 @@ class RenderWidget : public IPC::Channel::Listener,
|
| // compositor.
|
| bool is_accelerated_compositing_active_;
|
|
|
| + // Handle to a surface that is drawn to when accelerated compositing is
|
| + // active.
|
| + gfx::PluginWindowHandle compositing_surface_;
|
| +
|
| base::Time animation_floor_time_;
|
| bool animation_update_pending_;
|
| bool animation_task_posted_;
|
|
|