| Index: content/browser/gpu/gpu_process_host_ui_shim.cc
|
| diff --git a/content/browser/gpu/gpu_process_host_ui_shim.cc b/content/browser/gpu/gpu_process_host_ui_shim.cc
|
| index 54c1626b6c9cb3921a6f05dbefc64b73bc08e107..c2c892b17c426305bb7be672e93f4664983f5ec3 100644
|
| --- a/content/browser/gpu/gpu_process_host_ui_shim.cc
|
| +++ b/content/browser/gpu/gpu_process_host_ui_shim.cc
|
| @@ -20,6 +20,10 @@
|
| #include "content/common/gpu/gpu_messages.h"
|
| #include "content/public/browser/browser_thread.h"
|
|
|
| +#if defined(USE_OZONE)
|
| +#include "ui/ozone/gpu/gpu_platform_support_host.h"
|
| +#endif
|
| +
|
| namespace content {
|
|
|
| namespace {
|
| @@ -90,6 +94,10 @@ void RouteToGpuProcessHostUIShimTask(int host_id, const IPC::Message& msg) {
|
| GpuProcessHostUIShim::GpuProcessHostUIShim(int host_id)
|
| : host_id_(host_id) {
|
| g_hosts_by_id.Pointer()->AddWithID(this, host_id_);
|
| +#if defined(USE_OZONE)
|
| + ui::GpuPlatformSupportHost::GetInstance()->OnChannelEstablished(host_id,
|
| + this);
|
| +#endif
|
| }
|
|
|
| // static
|
| @@ -106,6 +114,10 @@ void GpuProcessHostUIShim::Destroy(int host_id, const std::string& message) {
|
| logging::LOG_ERROR, "GpuProcessHostUIShim",
|
| message);
|
|
|
| +#if defined(USE_OZONE)
|
| + ui::GpuPlatformSupportHost::GetInstance()->OnChannelDestroyed(host_id);
|
| +#endif
|
| +
|
| delete FromID(host_id);
|
| }
|
|
|
| @@ -145,6 +157,11 @@ bool GpuProcessHostUIShim::Send(IPC::Message* msg) {
|
| bool GpuProcessHostUIShim::OnMessageReceived(const IPC::Message& message) {
|
| DCHECK(CalledOnValidThread());
|
|
|
| +#if defined(USE_OZONE)
|
| + if (ui::GpuPlatformSupportHost::GetInstance()->OnMessageReceived(message))
|
| + return true;
|
| +#endif
|
| +
|
| if (message.routing_id() != MSG_ROUTING_CONTROL)
|
| return false;
|
|
|
|
|