OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ |
6 #define CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ | 6 #define CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 void CreateViewCommandBufferOnIO( | 58 void CreateViewCommandBufferOnIO( |
59 CreateRequest* request, | 59 CreateRequest* request, |
60 int32 surface_id, | 60 int32 surface_id, |
61 const GPUCreateCommandBufferConfig& init_params); | 61 const GPUCreateCommandBufferConfig& init_params); |
62 static void CommandBufferCreatedOnIO(CreateRequest* request, int32 route_id); | 62 static void CommandBufferCreatedOnIO(CreateRequest* request, int32 route_id); |
63 void EstablishGpuChannelOnIO(EstablishRequest* request, | 63 void EstablishGpuChannelOnIO(EstablishRequest* request, |
64 CauseForGpuLaunch cause_for_gpu_launch); | 64 CauseForGpuLaunch cause_for_gpu_launch); |
65 static void GpuChannelEstablishedOnIO( | 65 static void GpuChannelEstablishedOnIO( |
66 EstablishRequest* request, | 66 EstablishRequest* request, |
67 const IPC::ChannelHandle& channel_handle, | 67 const IPC::ChannelHandle& channel_handle, |
| 68 base::ProcessHandle gpu_process_handle, |
68 const GPUInfo& gpu_info); | 69 const GPUInfo& gpu_info); |
69 | 70 |
70 int gpu_client_id_; | 71 int gpu_client_id_; |
71 scoped_ptr<base::WaitableEvent> shutdown_event_; | 72 scoped_ptr<base::WaitableEvent> shutdown_event_; |
72 scoped_refptr<GpuChannelHost> gpu_channel_; | 73 scoped_refptr<GpuChannelHost> gpu_channel_; |
73 int gpu_host_id_; | 74 int gpu_host_id_; |
74 | 75 |
75 static BrowserGpuChannelHostFactory* instance_; | 76 static BrowserGpuChannelHostFactory* instance_; |
76 | 77 |
77 DISALLOW_COPY_AND_ASSIGN(BrowserGpuChannelHostFactory); | 78 DISALLOW_COPY_AND_ASSIGN(BrowserGpuChannelHostFactory); |
78 }; | 79 }; |
79 | 80 |
80 } // namespace content | 81 } // namespace content |
81 | 82 |
82 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ | 83 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ |
OLD | NEW |