| 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_COMMON_GPU_GPU_CHANNEL_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
| 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 void AddRouteToStream(int32_t route_id, int32_t stream_id); | 208 void AddRouteToStream(int32_t route_id, int32_t stream_id); |
| 209 void RemoveRouteFromStream(int32_t route_id); | 209 void RemoveRouteFromStream(int32_t route_id); |
| 210 | 210 |
| 211 // Message handlers for control messages. | 211 // Message handlers for control messages. |
| 212 void OnCreateCommandBuffer(gpu::SurfaceHandle surface_handle, | 212 void OnCreateCommandBuffer(gpu::SurfaceHandle surface_handle, |
| 213 const gfx::Size& size, | 213 const gfx::Size& size, |
| 214 const GPUCreateCommandBufferConfig& init_params, | 214 const GPUCreateCommandBufferConfig& init_params, |
| 215 int32_t route_id, | 215 int32_t route_id, |
| 216 bool* succeeded); | 216 bool* succeeded); |
| 217 void OnDestroyCommandBuffer(int32_t route_id); | 217 void OnDestroyCommandBuffer(int32_t route_id); |
| 218 | 218 void OnGetDriverBugWorkArounds( |
| 219 std::vector<std::string>* gpu_driver_bug_workarounds); |
| 219 | 220 |
| 220 // The lifetime of objects of this class is managed by a GpuChannelManager. | 221 // The lifetime of objects of this class is managed by a GpuChannelManager. |
| 221 // The GpuChannelManager destroy all the GpuChannels that they own when they | 222 // The GpuChannelManager destroy all the GpuChannels that they own when they |
| 222 // are destroyed. So a raw pointer is safe. | 223 // are destroyed. So a raw pointer is safe. |
| 223 GpuChannelManager* const gpu_channel_manager_; | 224 GpuChannelManager* const gpu_channel_manager_; |
| 224 | 225 |
| 225 // Sync point manager. Outlives the channel and is guaranteed to outlive the | 226 // Sync point manager. Outlives the channel and is guaranteed to outlive the |
| 226 // message loop. | 227 // message loop. |
| 227 gpu::SyncPointManager* const sync_point_manager_; | 228 gpu::SyncPointManager* const sync_point_manager_; |
| 228 | 229 |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 scoped_refptr<gpu::PreemptionFlag> preempting_flag_; | 475 scoped_refptr<gpu::PreemptionFlag> preempting_flag_; |
| 475 scoped_refptr<gpu::PreemptionFlag> preempted_flag_; | 476 scoped_refptr<gpu::PreemptionFlag> preempted_flag_; |
| 476 gpu::SyncPointManager* const sync_point_manager_; | 477 gpu::SyncPointManager* const sync_point_manager_; |
| 477 | 478 |
| 478 DISALLOW_COPY_AND_ASSIGN(GpuChannelMessageQueue); | 479 DISALLOW_COPY_AND_ASSIGN(GpuChannelMessageQueue); |
| 479 }; | 480 }; |
| 480 | 481 |
| 481 } // namespace content | 482 } // namespace content |
| 482 | 483 |
| 483 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 484 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
| OLD | NEW |