| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, | 148 void OnCreateVideoDecoder(int32 decoder_host_id, |
| 149 uint32 command_buffer_route_id, | 149 uint32 command_buffer_route_id, |
| 150 const std::vector<uint32>& configs); | 150 const std::vector<uint32>& configs); |
| 151 void OnDestroyVideoDecoder(int32 decoder_id); | 151 void OnDestroyVideoDecoder(int32 decoder_id); |
| 152 void OnCreateTransportTexture(int32 context_route_id, int32 host_id); | 152 void OnCreateTransportTexture(int32 context_route_id, int32 host_id); |
| 153 | 153 |
| 154 void OnAssignTexturesToVideoDecoder(int32 decoder_id, | |
| 155 const std::vector<int32>& buffer_ids, | |
| 156 const std::vector<uint32>& texture_ids, | |
| 157 const std::vector<gfx::Size>& sizes); | |
| 158 | |
| 159 // The lifetime of objects of this class is managed by a GpuChannelManager. | 154 // The lifetime of objects of this class is managed by a GpuChannelManager. |
| 160 // The GpuChannelManager destroy all the GpuChannels that they own when they | 155 // The GpuChannelManager destroy all the GpuChannels that they own when they |
| 161 // are destroyed. So a raw pointer is safe. | 156 // are destroyed. So a raw pointer is safe. |
| 162 GpuChannelManager* gpu_channel_manager_; | 157 GpuChannelManager* gpu_channel_manager_; |
| 163 | 158 |
| 164 scoped_ptr<IPC::SyncChannel> channel_; | 159 scoped_ptr<IPC::SyncChannel> channel_; |
| 165 | 160 |
| 166 // The id of the renderer who is on the other side of the channel. | 161 // The id of the renderer who is on the other side of the channel. |
| 167 int renderer_id_; | 162 int renderer_id_; |
| 168 | 163 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 194 TransportTextureMap transport_textures_; | 189 TransportTextureMap transport_textures_; |
| 195 | 190 |
| 196 bool log_messages_; // True if we should log sent and received messages. | 191 bool log_messages_; // True if we should log sent and received messages. |
| 197 gpu::gles2::DisallowedExtensions disallowed_extensions_; | 192 gpu::gles2::DisallowedExtensions disallowed_extensions_; |
| 198 GpuWatchdog* watchdog_; | 193 GpuWatchdog* watchdog_; |
| 199 | 194 |
| 200 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 195 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
| 201 }; | 196 }; |
| 202 | 197 |
| 203 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 198 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
| OLD | NEW |