Index: content/renderer/render_widget.cc |
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc |
index 8cd6f357056480ca6a47f043fb887769680c65e1..26f3f99dd1de3f91fcfa39366323cf7913cefed3 100644 |
--- a/content/renderer/render_widget.cc |
+++ b/content/renderer/render_widget.cc |
@@ -148,10 +148,12 @@ void RenderWidget::DoInit(int32 opener_id, |
// This is used to complete pending inits and non-pending inits. For non- |
// pending cases, the parent will be the same as the current parent. This |
// indicates we do not need to reparent or anything. |
-void RenderWidget::CompleteInit(gfx::NativeViewId parent_hwnd) { |
+void RenderWidget::CompleteInit(gfx::NativeViewId parent_hwnd, |
+ gfx::PluginWindowHandle compositing_surface) { |
DCHECK(routing_id_ != MSG_ROUTING_NONE); |
host_window_ = parent_hwnd; |
+ compositing_surface_ = compositing_surface; |
Send(new ViewHostMsg_RenderViewReady(routing_id_)); |
} |
@@ -196,10 +198,12 @@ bool RenderWidget::Send(IPC::Message* message) { |
// Got a response from the browser after the renderer decided to create a new |
// view. |
-void RenderWidget::OnCreatingNewAck(gfx::NativeViewId parent) { |
+void RenderWidget::OnCreatingNewAck( |
+ gfx::NativeViewId parent, |
+ gfx::PluginWindowHandle compositing_surface) { |
DCHECK(routing_id_ != MSG_ROUTING_NONE); |
- CompleteInit(parent); |
+ CompleteInit(parent, compositing_surface); |
} |
void RenderWidget::OnClose() { |