Index: chrome/browser/renderer_host/render_widget_host.cc |
=================================================================== |
--- chrome/browser/renderer_host/render_widget_host.cc (revision 65702) |
+++ chrome/browser/renderer_host/render_widget_host.cc (working copy) |
@@ -180,6 +180,9 @@ |
OnMsgCreatePluginContainer) |
IPC_MESSAGE_HANDLER(ViewHostMsg_DestroyPluginContainer, |
OnMsgDestroyPluginContainer) |
+#elif defined(OS_WIN) |
+ IPC_MESSAGE_HANDLER(ViewHostMsg_ShowCompositorHostWindow, |
+ OnShowCompositorHostWindow) |
#endif |
IPC_MESSAGE_UNHANDLED_ERROR() |
IPC_END_MESSAGE_MAP_EX() |
@@ -372,8 +375,9 @@ |
} |
void RenderWidgetHost::ScheduleComposite() { |
- DCHECK(!is_hidden_ || !is_gpu_rendering_active_) << |
- "ScheduleCompositeAndSync called while hidden!"; |
+ if (!is_hidden_ || !is_gpu_rendering_active_) { |
+ return; |
+ } |
// Send out a request to the renderer to paint the view if required. |
if (!repaint_ack_pending_ && !resize_ack_pending_ && !view_being_painted_) { |
@@ -1041,7 +1045,14 @@ |
NOTIMPLEMENTED(); |
} |
} |
- |
+#elif defined(OS_WIN) |
+void RenderWidgetHost::OnShowCompositorHostWindow(bool show) { |
+ if (view_) { |
+ view_->ShowCompositorHostWindow(show); |
+ } else { |
+ NOTIMPLEMENTED(); |
+ } |
+} |
#endif |
void RenderWidgetHost::PaintBackingStoreRect( |