Index: chrome/browser/renderer_host/browser_render_process_host.cc |
=================================================================== |
--- chrome/browser/renderer_host/browser_render_process_host.cc (revision 42644) |
+++ chrome/browser/renderer_host/browser_render_process_host.cc (working copy) |
@@ -29,6 +29,7 @@ |
#include "chrome/browser/extensions/extension_message_service.h" |
#include "chrome/browser/extensions/extensions_service.h" |
#include "chrome/browser/extensions/user_script_master.h" |
+#include "chrome/browser/gpu_process_host.h" |
#include "chrome/browser/history/history.h" |
#include "chrome/browser/io_thread.h" |
#include "chrome/browser/net/url_request_context_getter.h" |
@@ -45,6 +46,7 @@ |
#include "chrome/browser/visitedlink_master.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/child_process_info.h" |
+#include "chrome/common/gpu_messages.h" |
#include "chrome/common/logging_chrome.h" |
#include "chrome/common/notification_service.h" |
#include "chrome/common/pref_names.h" |
@@ -770,6 +772,8 @@ |
OnExtensionRemoveListener) |
IPC_MESSAGE_HANDLER(ViewHostMsg_ExtensionCloseChannel, |
OnExtensionCloseChannel) |
+ IPC_MESSAGE_HANDLER(ViewHostMsg_EstablishGpuChannel, |
+ OnMsgEstablishGpuChannel) |
IPC_MESSAGE_HANDLER(ViewHostMsg_SpellChecker_RequestDictionary, |
OnSpellCheckerRequestDictionary) |
IPC_MESSAGE_UNHANDLED_ERROR() |
@@ -974,6 +978,10 @@ |
} |
} |
+void BrowserRenderProcessHost::OnMsgEstablishGpuChannel() { |
+ GpuProcessHost::Get()->EstablishGpuChannel(id()); |
+} |
+ |
void BrowserRenderProcessHost::OnSpellCheckerRequestDictionary() { |
if (profile()->GetSpellCheckHost()) { |
// The spellchecker initialization already started and finished; just send |