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

Unified Diff: chrome/browser/gpu_process_host.cc

Issue 5528007: If compositor window already exists, then simply return it rather than compla... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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
« no previous file with comments | « chrome/browser/gpu_process_host.h ('k') | chrome/browser/renderer_host/render_widget_host_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gpu_process_host.cc
===================================================================
--- chrome/browser/gpu_process_host.cc (revision 68022)
+++ chrome/browser/gpu_process_host.cc (working copy)
@@ -186,8 +186,8 @@
IPC_MESSAGE_HANDLER(GpuHostMsg_AcceleratedSurfaceBuffersSwapped,
OnAcceleratedSurfaceBuffersSwapped)
#elif defined(OS_WIN)
- IPC_MESSAGE_HANDLER_DELAY_REPLY(GpuHostMsg_CreateCompositorHostWindow,
- OnCreateCompositorHostWindow)
+ IPC_MESSAGE_HANDLER_DELAY_REPLY(GpuHostMsg_GetCompositorHostWindow,
+ OnGetCompositorHostWindow)
#endif
// If the IO thread does not handle the message then automatically route it
// to the UI thread. The UI thread will report an error if it does not
@@ -398,14 +398,14 @@
GpuProcessHost::Get()->Send(reply_msg);
}
-void CreateCompositorHostWindowDispatcher(
+void GetCompositorHostWindowDispatcher(
int renderer_id,
int render_view_id,
IPC::Message* reply_msg) {
RenderViewHost* host = RenderViewHost::FromID(renderer_id,
render_view_id);
if (!host) {
- GpuHostMsg_CreateCompositorHostWindow::WriteReplyParams(reply_msg,
+ GpuHostMsg_GetCompositorHostWindow::WriteReplyParams(reply_msg,
gfx::kNullPluginWindow);
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
@@ -414,10 +414,10 @@
}
RenderWidgetHostView* view = host->view();
- gfx::PluginWindowHandle id = view->CreateCompositorHostWindow();
+ gfx::PluginWindowHandle id = view->GetCompositorHostWindow();
- GpuHostMsg_CreateCompositorHostWindow::WriteReplyParams(reply_msg, id);
+ GpuHostMsg_GetCompositorHostWindow::WriteReplyParams(reply_msg, id);
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
NewRunnableFunction(&SendDelayedReply, reply_msg));
@@ -425,13 +425,13 @@
} // namespace
-void GpuProcessHost::OnCreateCompositorHostWindow(
+void GpuProcessHost::OnGetCompositorHostWindow(
int renderer_id,
int render_view_id,
IPC::Message* reply_message) {
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- NewRunnableFunction(&CreateCompositorHostWindowDispatcher,
+ NewRunnableFunction(&GetCompositorHostWindowDispatcher,
renderer_id, render_view_id, reply_message));
}
« no previous file with comments | « chrome/browser/gpu_process_host.h ('k') | chrome/browser/renderer_host/render_widget_host_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698