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

Unified Diff: content/common/gpu/client/command_buffer_proxy_impl.h

Issue 9904005: PpapiCommandBufferProxy implements CommandBufferProxy. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed Windows Build. Thanks girard@! Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy.h ('k') | content/common/gpu/client/gpu_channel_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/client/command_buffer_proxy_impl.h
diff --git a/content/common/gpu/client/command_buffer_proxy_impl.h b/content/common/gpu/client/command_buffer_proxy_impl.h
index c5e64febac39ccfe25ff848285657052fb3d9004..71beae32e5b1d319424e805a1a2062fa0f4a9c30 100644
--- a/content/common/gpu/client/command_buffer_proxy_impl.h
+++ b/content/common/gpu/client/command_buffer_proxy_impl.h
@@ -12,7 +12,7 @@
#include <queue>
#include <string>
-#include "content/common/gpu/client/command_buffer_proxy.h"
+#include "gpu/ipc/command_buffer_proxy.h"
#include "base/callback.h"
#include "base/memory/linked_ptr.h"
@@ -45,6 +45,16 @@ class CommandBufferProxyImpl :
CommandBufferProxyImpl(GpuChannelHost* channel, int route_id);
virtual ~CommandBufferProxyImpl();
+ // Sends an IPC message to create a GpuVideoDecodeAccelerator. Creates and
+ // returns a pointer to a GpuVideoDecodeAcceleratorHost.
+ // Returns NULL on failure to create the GpuVideoDecodeAcceleratorHost.
+ // Note that the GpuVideoDecodeAccelerator may still fail to be created in
+ // the GPU process, even if this returns non-NULL. In this case the client is
+ // notified of an error later.
+ scoped_refptr<GpuVideoDecodeAcceleratorHost> CreateVideoDecoder(
+ media::VideoCodecProfile profile,
+ media::VideoDecodeAccelerator::Client* client);
+
// IPC::Channel::Listener implementation:
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
virtual void OnChannelError() OVERRIDE;
@@ -62,9 +72,6 @@ class CommandBufferProxyImpl :
uint32 parent_texture_id) OVERRIDE;
virtual void SetChannelErrorCallback(const base::Closure& callback) OVERRIDE;
virtual void SetNotifyRepaintTask(const base::Closure& callback) OVERRIDE;
- virtual scoped_refptr<GpuVideoDecodeAcceleratorHost> CreateVideoDecoder(
- media::VideoCodecProfile profile,
- media::VideoDecodeAccelerator::Client* client) OVERRIDE;
virtual void SetOnConsoleMessageCallback(
const GpuConsoleMessageCallback& callback) OVERRIDE;
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy.h ('k') | content/common/gpu/client/gpu_channel_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698