| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_GPU_GPU_CHANNEL_H_ |
| 6 #define CHROME_GPU_GPU_CHANNEL_H_ | 6 #define CONTENT_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/gpu/gpu_command_buffer_stub.h" | |
| 18 #include "content/common/message_router.h" | 17 #include "content/common/message_router.h" |
| 18 #include "content/gpu/gpu_command_buffer_stub.h" |
| 19 #include "ipc/ipc_sync_channel.h" | 19 #include "ipc/ipc_sync_channel.h" |
| 20 #include "ui/gfx/native_widget_types.h" | 20 #include "ui/gfx/native_widget_types.h" |
| 21 #include "ui/gfx/size.h" | 21 #include "ui/gfx/size.h" |
| 22 | 22 |
| 23 class GpuThread; | 23 class GpuThread; |
| 24 struct GPUCreateCommandBufferConfig; | 24 struct GPUCreateCommandBufferConfig; |
| 25 | 25 |
| 26 // Encapsulates an IPC channel between the GPU process and one renderer | 26 // Encapsulates an IPC channel between the GPU process and one renderer |
| 27 // process. On the renderer side there's a corresponding GpuChannelHost. | 27 // process. On the renderer side there's a corresponding GpuChannelHost. |
| 28 class GpuChannel : public IPC::Channel::Listener, | 28 class GpuChannel : public IPC::Channel::Listener, |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 #if defined(OS_MACOSX) | 117 #if defined(OS_MACOSX) |
| 118 std::set<int32> destroyed_renderer_routes_; | 118 std::set<int32> destroyed_renderer_routes_; |
| 119 #endif // defined (OS_MACOSX) | 119 #endif // defined (OS_MACOSX) |
| 120 #endif // defined (ENABLE_GPU) | 120 #endif // defined (ENABLE_GPU) |
| 121 | 121 |
| 122 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. |
| 123 | 123 |
| 124 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 124 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 #endif // CHROME_GPU_GPU_CHANNEL_H_ | 127 #endif // CONTENT_GPU_GPU_CHANNEL_H_ |
| OLD | NEW |