| OLD | NEW |
| 1 // Copyright (c) 2011 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 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 const GPUCreateCommandBufferConfig& init_params, | 143 const GPUCreateCommandBufferConfig& init_params, |
| 144 IPC::Message* reply_message); | 144 IPC::Message* reply_message); |
| 145 void OnDestroyCommandBuffer(int32 route_id, IPC::Message* reply_message); | 145 void OnDestroyCommandBuffer(int32 route_id, IPC::Message* reply_message); |
| 146 | 146 |
| 147 void OnCreateOffscreenSurface(const gfx::Size& size, | 147 void OnCreateOffscreenSurface(const gfx::Size& size, |
| 148 IPC::Message* reply_message); | 148 IPC::Message* reply_message); |
| 149 void OnDestroySurface(int route_id); | 149 void OnDestroySurface(int route_id); |
| 150 | 150 |
| 151 void OnCreateTransportTexture(int32 context_route_id, int32 host_id); | 151 void OnCreateTransportTexture(int32 context_route_id, int32 host_id); |
| 152 | 152 |
| 153 void OnEcho(const IPC::Message& message); |
| 154 |
| 153 // The lifetime of objects of this class is managed by a GpuChannelManager. | 155 // The lifetime of objects of this class is managed by a GpuChannelManager. |
| 154 // The GpuChannelManager destroy all the GpuChannels that they own when they | 156 // The GpuChannelManager destroy all the GpuChannels that they own when they |
| 155 // are destroyed. So a raw pointer is safe. | 157 // are destroyed. So a raw pointer is safe. |
| 156 GpuChannelManager* gpu_channel_manager_; | 158 GpuChannelManager* gpu_channel_manager_; |
| 157 | 159 |
| 158 scoped_ptr<IPC::SyncChannel> channel_; | 160 scoped_ptr<IPC::SyncChannel> channel_; |
| 159 | 161 |
| 160 std::queue<IPC::Message*> deferred_messages_; | 162 std::queue<IPC::Message*> deferred_messages_; |
| 161 | 163 |
| 162 // The id of the renderer who is on the other side of the channel. | 164 // The id of the renderer who is on the other side of the channel. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 191 gpu::gles2::DisallowedExtensions disallowed_extensions_; | 193 gpu::gles2::DisallowedExtensions disallowed_extensions_; |
| 192 GpuWatchdog* watchdog_; | 194 GpuWatchdog* watchdog_; |
| 193 bool software_; | 195 bool software_; |
| 194 | 196 |
| 195 ScopedRunnableMethodFactory<GpuChannel> task_factory_; | 197 ScopedRunnableMethodFactory<GpuChannel> task_factory_; |
| 196 | 198 |
| 197 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 199 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
| 198 }; | 200 }; |
| 199 | 201 |
| 200 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 202 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
| OLD | NEW |