| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_GPU_GPU_CHANNEL_H_ | 5 #ifndef CHROME_GPU_GPU_CHANNEL_H_ |
| 6 #define CHROME_GPU_GPU_CHANNEL_H_ | 6 #define CHROME_GPU_GPU_CHANNEL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/id_map.h" | 13 #include "base/id_map.h" |
| 14 #include "base/process.h" | 14 #include "base/process.h" |
| 15 #include "base/scoped_ptr.h" | 15 #include "base/scoped_ptr.h" |
| 16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 17 #include "chrome/common/gpu_create_command_buffer_config.h" | |
| 18 #include "chrome/common/gpu_video_common.h" | |
| 19 #include "chrome/gpu/gpu_command_buffer_stub.h" | 17 #include "chrome/gpu/gpu_command_buffer_stub.h" |
| 20 #include "content/common/message_router.h" | 18 #include "content/common/message_router.h" |
| 21 #include "ipc/ipc_sync_channel.h" | 19 #include "ipc/ipc_sync_channel.h" |
| 22 #include "ui/gfx/native_widget_types.h" | 20 #include "ui/gfx/native_widget_types.h" |
| 23 #include "ui/gfx/size.h" | 21 #include "ui/gfx/size.h" |
| 24 | 22 |
| 25 class GpuThread; | 23 class GpuThread; |
| 24 struct GPUCreateCommandBufferConfig; |
| 26 | 25 |
| 27 // Encapsulates an IPC channel between the GPU process and one renderer | 26 // Encapsulates an IPC channel between the GPU process and one renderer |
| 28 // process. On the renderer side there's a corresponding GpuChannelHost. | 27 // process. On the renderer side there's a corresponding GpuChannelHost. |
| 29 class GpuChannel : public IPC::Channel::Listener, | 28 class GpuChannel : public IPC::Channel::Listener, |
| 30 public IPC::Message::Sender, | 29 public IPC::Message::Sender, |
| 31 public base::RefCountedThreadSafe<GpuChannel> { | 30 public base::RefCountedThreadSafe<GpuChannel> { |
| 32 public: | 31 public: |
| 33 // Takes ownership of the renderer process handle. | 32 // Takes ownership of the renderer process handle. |
| 34 GpuChannel(GpuThread* gpu_thread, | 33 GpuChannel(GpuThread* gpu_thread, |
| 35 int renderer_id); | 34 int renderer_id); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 std::set<int32> destroyed_renderer_routes_; | 118 std::set<int32> destroyed_renderer_routes_; |
| 120 #endif // defined (OS_MACOSX) | 119 #endif // defined (OS_MACOSX) |
| 121 #endif // defined (ENABLE_GPU) | 120 #endif // defined (ENABLE_GPU) |
| 122 | 121 |
| 123 bool log_messages_; // True if we should log sent and received messages. | 122 bool log_messages_; // True if we should log sent and received messages. |
| 124 | 123 |
| 125 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 124 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
| 126 }; | 125 }; |
| 127 | 126 |
| 128 #endif // CHROME_GPU_GPU_CHANNEL_H_ | 127 #endif // CHROME_GPU_GPU_CHANNEL_H_ |
| OLD | NEW |