Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Side by Side Diff: content/common/gpu/gpu_channel.h

Issue 7260008: Implement proper synchronization between HW video decode IPC and CommandBuffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing compilation errors from bots. Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/gpu_channel.cc » ('j') | content/common/gpu/gpu_command_buffer_stub.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698