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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 void ScheduleHandleMessage(); | 221 void ScheduleHandleMessage(); |
222 | 222 |
223 // Message handlers. | 223 // Message handlers. |
224 void OnCreateOffscreenCommandBuffer( | 224 void OnCreateOffscreenCommandBuffer( |
225 const gfx::Size& size, | 225 const gfx::Size& size, |
226 const GPUCreateCommandBufferConfig& init_params, | 226 const GPUCreateCommandBufferConfig& init_params, |
227 int32 route_id, | 227 int32 route_id, |
228 bool* succeeded); | 228 bool* succeeded); |
229 void OnDestroyCommandBuffer(int32 route_id); | 229 void OnDestroyCommandBuffer(int32 route_id); |
230 void OnCreateJpegDecoder(int32 route_id, IPC::Message* reply_msg); | 230 void OnCreateJpegDecoder(int32 route_id, IPC::Message* reply_msg); |
| 231 void OnNop(); |
231 | 232 |
232 // The lifetime of objects of this class is managed by a GpuChannelManager. | 233 // The lifetime of objects of this class is managed by a GpuChannelManager. |
233 // The GpuChannelManager destroy all the GpuChannels that they own when they | 234 // The GpuChannelManager destroy all the GpuChannels that they own when they |
234 // are destroyed. So a raw pointer is safe. | 235 // are destroyed. So a raw pointer is safe. |
235 GpuChannelManager* gpu_channel_manager_; | 236 GpuChannelManager* gpu_channel_manager_; |
236 | 237 |
237 scoped_ptr<IPC::SyncChannel> channel_; | 238 scoped_ptr<IPC::SyncChannel> channel_; |
238 | 239 |
239 // Uniquely identifies the channel within this GPU process. | 240 // Uniquely identifies the channel within this GPU process. |
240 std::string channel_id_; | 241 std::string channel_id_; |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 | 470 |
470 base::WeakPtr<GpuChannel> gpu_channel_; | 471 base::WeakPtr<GpuChannel> gpu_channel_; |
471 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 472 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
472 | 473 |
473 DISALLOW_COPY_AND_ASSIGN(GpuChannelMessageQueue); | 474 DISALLOW_COPY_AND_ASSIGN(GpuChannelMessageQueue); |
474 }; | 475 }; |
475 | 476 |
476 } // namespace content | 477 } // namespace content |
477 | 478 |
478 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 479 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
OLD | NEW |