summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/plugin_delegate.h
diff options
context:
space:
mode:
authorvrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-10 21:41:37 +0000
committervrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-10 21:41:37 +0000
commitf5142aafed7190e2b835e703113a6ce0a9e9875b (patch)
tree188db8d5883dd92e9899d063fd07a3873e28d68a /webkit/plugins/ppapi/plugin_delegate.h
parent23ae56a5792529886ded12b3d95c7686d4bc116b (diff)
downloadchromium_src-f5142aafed7190e2b835e703113a6ce0a9e9875b.zip
chromium_src-f5142aafed7190e2b835e703113a6ce0a9e9875b.tar.gz
chromium_src-f5142aafed7190e2b835e703113a6ce0a9e9875b.tar.bz2
Implement AssignGLESBuffers for VideoDecode PPAPI
Fills in implementation for AssignGLESBuffers where it was missing. Also updates OmxVideoDecodeAccelerator to reflect the changes. BUG=NONE TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88698 Review URL: http://codereview.chromium.org/6965010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88733 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/ppapi/plugin_delegate.h')
-rw-r--r--webkit/plugins/ppapi/plugin_delegate.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/webkit/plugins/ppapi/plugin_delegate.h b/webkit/plugins/ppapi/plugin_delegate.h
index 931a39d..c72eaaa 100644
--- a/webkit/plugins/ppapi/plugin_delegate.h
+++ b/webkit/plugins/ppapi/plugin_delegate.h
@@ -174,6 +174,10 @@ class PluginDelegate {
// destroyed.
virtual ::gpu::CommandBuffer* GetCommandBuffer() = 0;
+ // If the command buffer is routed in the GPU channel, return the route id.
+ // Otherwise return 0.
+ virtual int GetCommandBufferRouteId() = 0;
+
// Set an optional callback that will be invoked when the context is lost
// (e.g. gpu process crash). Takes ownership of the callback.
virtual void SetContextLostCallback(Callback0::Type* callback) = 0;
@@ -258,7 +262,8 @@ class PluginDelegate {
// The caller will own the pointer returned from this.
virtual PlatformVideoDecoder* CreateVideoDecoder(
- media::VideoDecodeAccelerator::Client* client) = 0;
+ media::VideoDecodeAccelerator::Client* client,
+ int command_buffer_route_id) = 0;
// The caller is responsible for calling Shutdown() on the returned pointer
// to clean up the corresponding resources allocated during this call.