Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Unified Diff: chrome/browser/renderer_host/render_widget_host.cc

Issue 4815001: Use inner HWND for accelerated rendering on windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698