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

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

Issue 7779001: Replace the use of an int32* with a proper struct for decoder configuration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replaced struct with explicit profile parameter. Created 9 years, 3 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_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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 const gfx::Size& size, 88 const gfx::Size& size,
89 CommandBufferProxy* share_group, 89 CommandBufferProxy* share_group,
90 const std::string& allowed_extensions, 90 const std::string& allowed_extensions,
91 const std::vector<int32>& attribs, 91 const std::vector<int32>& attribs,
92 const GURL& active_url); 92 const GURL& active_url);
93 93
94 // Creates a video decoder in the GPU process. 94 // Creates a video decoder in the GPU process.
95 // Returned pointer is owned by the CommandBufferProxy for |route_id|. 95 // Returned pointer is owned by the CommandBufferProxy for |route_id|.
96 GpuVideoDecodeAcceleratorHost* CreateVideoDecoder( 96 GpuVideoDecodeAcceleratorHost* CreateVideoDecoder(
97 int command_buffer_route_id, 97 int command_buffer_route_id,
98 const std::vector<int32>& configs, 98 media::VideoDecodeAccelerator::Profile profile,
99 media::VideoDecodeAccelerator::Client* client); 99 media::VideoDecodeAccelerator::Client* client);
100 100
101 // Destroy a command buffer created by this channel. 101 // Destroy a command buffer created by this channel.
102 void DestroyCommandBuffer(CommandBufferProxy* command_buffer); 102 void DestroyCommandBuffer(CommandBufferProxy* command_buffer);
103 103
104 // Create a surface in the GPU process. Returns null on failure. 104 // Create a surface in the GPU process. Returns null on failure.
105 GpuSurfaceProxy* CreateOffscreenSurface(const gfx::Size& size); 105 GpuSurfaceProxy* CreateOffscreenSurface(const gfx::Size& size);
106 106
107 // Destroy a surface in the GPU process. 107 // Destroy a surface in the GPU process.
108 void DestroySurface(GpuSurfaceProxy* surface); 108 void DestroySurface(GpuSurfaceProxy* surface);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // textures. These messages are routed to TransportTextureHost. 180 // textures. These messages are routed to TransportTextureHost.
181 scoped_refptr<TransportTextureService> transport_texture_service_; 181 scoped_refptr<TransportTextureService> transport_texture_service_;
182 182
183 // A filter for sending messages from thread other than the main thread. 183 // A filter for sending messages from thread other than the main thread.
184 scoped_refptr<IPC::SyncMessageFilter> sync_filter_; 184 scoped_refptr<IPC::SyncMessageFilter> sync_filter_;
185 185
186 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); 186 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost);
187 }; 187 };
188 188
189 #endif // CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_ 189 #endif // CONTENT_RENDERER_GPU_GPU_CHANNEL_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698