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

Side by Side Diff: content/renderer/gpu/gpu_channel_host.cc

Issue 7545014: Implement PPAPI VideoDecode out-of-process support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: responding to brettw Created 9 years, 4 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 #include "content/renderer/gpu/gpu_channel_host.h" 5 #include "content/renderer/gpu/gpu_channel_host.h"
6 6
7 #include "content/common/child_process.h" 7 #include "content/common/child_process.h"
8 #include "content/common/gpu/gpu_messages.h" 8 #include "content/common/gpu/gpu_messages.h"
9 #include "content/renderer/gpu/command_buffer_proxy.h" 9 #include "content/renderer/gpu/command_buffer_proxy.h"
10 #include "content/renderer/gpu/gpu_surface_proxy.h" 10 #include "content/renderer/gpu/gpu_surface_proxy.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 router_.AddRoute(route_id, command_buffer); 128 router_.AddRoute(route_id, command_buffer);
129 proxies_[route_id] = command_buffer; 129 proxies_[route_id] = command_buffer;
130 return command_buffer; 130 return command_buffer;
131 #else 131 #else
132 return NULL; 132 return NULL;
133 #endif 133 #endif
134 } 134 }
135 135
136 GpuVideoDecodeAcceleratorHost* GpuChannelHost::CreateVideoDecoder( 136 GpuVideoDecodeAcceleratorHost* GpuChannelHost::CreateVideoDecoder(
137 int command_buffer_route_id, 137 int command_buffer_route_id,
138 const std::vector<uint32>& configs, 138 const std::vector<int32>& configs,
139 media::VideoDecodeAccelerator::Client* client) { 139 media::VideoDecodeAccelerator::Client* client) {
140 ProxyMap::iterator it = proxies_.find(command_buffer_route_id); 140 ProxyMap::iterator it = proxies_.find(command_buffer_route_id);
141 DCHECK(it != proxies_.end()); 141 DCHECK(it != proxies_.end());
142 CommandBufferProxy* proxy = it->second; 142 CommandBufferProxy* proxy = it->second;
143 return proxy->CreateVideoDecoder(configs, client); 143 return proxy->CreateVideoDecoder(configs, client);
144 } 144 }
145 145
146 CommandBufferProxy* GpuChannelHost::CreateOffscreenCommandBuffer( 146 CommandBufferProxy* GpuChannelHost::CreateOffscreenCommandBuffer(
147 const gfx::Size& size, 147 const gfx::Size& size,
148 CommandBufferProxy* share_group, 148 CommandBufferProxy* share_group,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 209
210 void GpuChannelHost::DestroySurface(GpuSurfaceProxy* surface) { 210 void GpuChannelHost::DestroySurface(GpuSurfaceProxy* surface) {
211 #if defined(ENABLE_GPU) 211 #if defined(ENABLE_GPU)
212 Send(new GpuChannelMsg_DestroySurface(surface->route_id())); 212 Send(new GpuChannelMsg_DestroySurface(surface->route_id()));
213 if (router_.ResolveRoute(surface->route_id())) 213 if (router_.ResolveRoute(surface->route_id()))
214 router_.RemoveRoute(surface->route_id()); 214 router_.RemoveRoute(surface->route_id());
215 215
216 delete surface; 216 delete surface;
217 #endif 217 #endif
218 } 218 }
OLDNEW
« no previous file with comments | « content/renderer/gpu/gpu_channel_host.h ('k') | content/renderer/gpu/gpu_video_decode_accelerator_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698