| 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 <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 void OnCreateOffscreenCommandBuffer( | 138 void OnCreateOffscreenCommandBuffer( |
| 139 const gfx::Size& size, | 139 const gfx::Size& size, |
| 140 const GPUCreateCommandBufferConfig& init_params, | 140 const GPUCreateCommandBufferConfig& init_params, |
| 141 int32* route_id); | 141 int32* route_id); |
| 142 void OnDestroyCommandBuffer(int32 route_id); | 142 void OnDestroyCommandBuffer(int32 route_id); |
| 143 | 143 |
| 144 void OnCreateOffscreenSurface(const gfx::Size& size, | 144 void OnCreateOffscreenSurface(const gfx::Size& size, |
| 145 int* route_id); | 145 int* route_id); |
| 146 void OnDestroySurface(int route_id); | 146 void OnDestroySurface(int route_id); |
| 147 | 147 |
| 148 void OnCreateVideoDecoder(int32 decoder_host_id, | |
| 149 uint32 command_buffer_route_id, | |
| 150 const std::vector<uint32>& configs); | |
| 151 void OnDestroyVideoDecoder(int32 decoder_id); | |
| 152 void OnCreateTransportTexture(int32 context_route_id, int32 host_id); | 148 void OnCreateTransportTexture(int32 context_route_id, int32 host_id); |
| 153 | 149 |
| 154 // The lifetime of objects of this class is managed by a GpuChannelManager. | 150 // The lifetime of objects of this class is managed by a GpuChannelManager. |
| 155 // The GpuChannelManager destroy all the GpuChannels that they own when they | 151 // The GpuChannelManager destroy all the GpuChannels that they own when they |
| 156 // are destroyed. So a raw pointer is safe. | 152 // are destroyed. So a raw pointer is safe. |
| 157 GpuChannelManager* gpu_channel_manager_; | 153 GpuChannelManager* gpu_channel_manager_; |
| 158 | 154 |
| 159 scoped_ptr<IPC::SyncChannel> channel_; | 155 scoped_ptr<IPC::SyncChannel> channel_; |
| 160 | 156 |
| 161 // The id of the renderer who is on the other side of the channel. | 157 // The id of the renderer who is on the other side of the channel. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 189 TransportTextureMap transport_textures_; | 185 TransportTextureMap transport_textures_; |
| 190 | 186 |
| 191 bool log_messages_; // True if we should log sent and received messages. | 187 bool log_messages_; // True if we should log sent and received messages. |
| 192 gpu::gles2::DisallowedExtensions disallowed_extensions_; | 188 gpu::gles2::DisallowedExtensions disallowed_extensions_; |
| 193 GpuWatchdog* watchdog_; | 189 GpuWatchdog* watchdog_; |
| 194 | 190 |
| 195 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 191 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
| 196 }; | 192 }; |
| 197 | 193 |
| 198 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 194 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
| OLD | NEW |