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

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

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
« no previous file with comments | « content/renderer/gpu/command_buffer_proxy.cc ('k') | content/renderer/gpu/gpu_channel_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_RENDERER_GPU_GPU_CHANNEL_HOST_H_ 5 #ifndef CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_
6 #define CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_ 6 #define CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 const gfx::Size& size, 79 const gfx::Size& size,
80 CommandBufferProxy* share_group, 80 CommandBufferProxy* share_group,
81 const std::string& allowed_extensions, 81 const std::string& allowed_extensions,
82 const std::vector<int32>& attribs, 82 const std::vector<int32>& attribs,
83 const GURL& active_url); 83 const GURL& active_url);
84 84
85 // Creates a video decoder in the GPU process. 85 // Creates a video decoder in the GPU process.
86 // Returned pointer is owned by the CommandBufferProxy for |route_id|. 86 // Returned pointer is owned by the CommandBufferProxy for |route_id|.
87 GpuVideoDecodeAcceleratorHost* CreateVideoDecoder( 87 GpuVideoDecodeAcceleratorHost* CreateVideoDecoder(
88 int command_buffer_route_id, 88 int command_buffer_route_id,
89 const std::vector<uint32>& configs, 89 const std::vector<int32>& configs,
90 media::VideoDecodeAccelerator::Client* client); 90 media::VideoDecodeAccelerator::Client* client);
91 91
92 // Destroy a command buffer created by this channel. 92 // Destroy a command buffer created by this channel.
93 void DestroyCommandBuffer(CommandBufferProxy* command_buffer); 93 void DestroyCommandBuffer(CommandBufferProxy* command_buffer);
94 94
95 // Create a surface in the GPU process. Returns null on failure. 95 // Create a surface in the GPU process. Returns null on failure.
96 GpuSurfaceProxy* CreateOffscreenSurface(const gfx::Size& size); 96 GpuSurfaceProxy* CreateOffscreenSurface(const gfx::Size& size);
97 97
98 // Destroy a surface in the GPU process. 98 // Destroy a surface in the GPU process.
99 void DestroySurface(GpuSurfaceProxy* surface); 99 void DestroySurface(GpuSurfaceProxy* surface);
(...skipping 19 matching lines...) Expand all
119 ProxyMap proxies_; 119 ProxyMap proxies_;
120 120
121 // This is a MessageFilter to intercept IPC messages related to transport 121 // This is a MessageFilter to intercept IPC messages related to transport
122 // textures. These messages are routed to TransportTextureHost. 122 // textures. These messages are routed to TransportTextureHost.
123 scoped_refptr<TransportTextureService> transport_texture_service_; 123 scoped_refptr<TransportTextureService> transport_texture_service_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); 125 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost);
126 }; 126 };
127 127
128 #endif // CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_ 128 #endif // CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/command_buffer_proxy.cc ('k') | content/renderer/gpu/gpu_channel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698