diff options
author | vrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-10 18:40:29 +0000 |
---|---|---|
committer | vrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-10 18:40:29 +0000 |
commit | d2f777617b4c8873e6b72dcd3a0fd6809f7e4dbb (patch) | |
tree | 811d79f44b066d8ac7e837d287b2304a81774b6c /webkit/plugins/ppapi/plugin_delegate.h | |
parent | 484372884fa6236934471d00e84b23c26e1a22a7 (diff) | |
download | chromium_src-d2f777617b4c8873e6b72dcd3a0fd6809f7e4dbb.zip chromium_src-d2f777617b4c8873e6b72dcd3a0fd6809f7e4dbb.tar.gz chromium_src-d2f777617b4c8873e6b72dcd3a0fd6809f7e4dbb.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
Review URL: http://codereview.chromium.org/6965010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88698 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/ppapi/plugin_delegate.h')
-rw-r--r-- | webkit/plugins/ppapi/plugin_delegate.h | 7 |
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. |