Chromium Code Reviews| Index: content/browser/gpu/gpu_process_host.cc |
| diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc |
| index 96a233e56e426cb4c5eb1dbe9ade8d1d7af4acd7..e55fdd5f9ff1294818c648d965977bc27b2e1615 100644 |
| --- a/content/browser/gpu/gpu_process_host.cc |
| +++ b/content/browser/gpu/gpu_process_host.cc |
| @@ -526,6 +526,12 @@ bool GpuProcessHost::Init() { |
| if (!Send(new GpuMsg_Initialize())) |
| return false; |
| +#if defined(USE_OZONE) |
| + int32 host_route_id = GenerateRouteID(); |
|
alexst (slow to review)
2014/06/16 21:34:23
This is a public function that seems to only be us
rjkroege
2014/06/16 21:38:49
you are presuming that we never call this code mor
piman
2014/06/16 23:53:14
What is the purpose of the host route id?
1- Gener
spang
2014/06/17 14:47:34
Right. I thought of making it a constant, and we c
|
| + if (!Send(new GpuMsg_InitializePlatformSupport(host_route_id))) |
|
piman
2014/06/16 23:53:14
Can you combine this with the GpuMsg_Initialize me
spang
2014/06/17 14:47:34
Will merge them.
|
| + return false; |
| +#endif |
| + |
| return true; |
| } |
| @@ -1089,6 +1095,10 @@ void GpuProcessHost::LoadedShader(const std::string& key, |
| Send(new GpuMsg_LoadedShader(data)); |
| } |
| +int32 GpuProcessHost::GenerateRouteID() { |
| + return next_route_id_.GetNext(); |
| +} |
| + |
| void GpuProcessHost::CreateChannelCache(int32 client_id) { |
| TRACE_EVENT0("gpu", "GpuProcessHost::CreateChannelCache"); |