diff options
author | vrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-10 21:41:37 +0000 |
---|---|---|
committer | vrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-10 21:41:37 +0000 |
commit | f5142aafed7190e2b835e703113a6ce0a9e9875b (patch) | |
tree | 188db8d5883dd92e9899d063fd07a3873e28d68a /media | |
parent | 23ae56a5792529886ded12b3d95c7686d4bc116b (diff) | |
download | chromium_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 'media')
-rw-r--r-- | media/video/picture.cc | 6 | ||||
-rw-r--r-- | media/video/picture.h | 13 |
2 files changed, 7 insertions, 12 deletions
diff --git a/media/video/picture.cc b/media/video/picture.cc index f2d6632..60fd3f5 100644 --- a/media/video/picture.cc +++ b/media/video/picture.cc @@ -15,9 +15,9 @@ BaseBuffer::~BaseBuffer() {} BaseBuffer::BaseBuffer(int32 id, gfx::Size size) : id_(id), size_(size) { } -GLESBuffer::GLESBuffer( - int32 id, gfx::Size size, uint32 texture_id, uint32 context_id) - : BaseBuffer(id, size), texture_id_(texture_id), context_id_(context_id) { +GLESBuffer::GLESBuffer(int32 id, gfx::Size size, uint32 texture_id) + : BaseBuffer(id, size), + texture_id_(texture_id) { } SysmemBuffer::SysmemBuffer(int32 id, gfx::Size size, void* data) diff --git a/media/video/picture.h b/media/video/picture.h index e268c51..e28a5c4 100644 --- a/media/video/picture.h +++ b/media/video/picture.h @@ -6,6 +6,7 @@ #define MEDIA_VIDEO_PICTURE_H_ #include "base/basictypes.h" +#include "ui/gfx/gl/gl_context.h" #include "ui/gfx/size.h" struct PP_BufferInfo_Dev; @@ -42,24 +43,18 @@ class BaseBuffer { // This is the media-namespace equivalent of PP_GLESBuffer_Dev. class GLESBuffer : public BaseBuffer { public: - GLESBuffer(int32 id, gfx::Size size, uint32 texture_id, uint32 context_id); + GLESBuffer(int32 id, gfx::Size size, uint32 texture_id); GLESBuffer(const PP_GLESBuffer_Dev& buffer); // Returns the id of the texture. + // NOTE: The texture id in the renderer process corresponds to a different + // texture id in the GPU process. uint32 texture_id() const { return texture_id_; } - // Returns the id of the context in which this texture lives. - // TODO(vrk): I'm not sure if "id" is what we want, or some reference to the - // PPB_Context3D_Dev. Not sure how this eventually gets used. - uint32 context_id() const { - return context_id_; - } - private: uint32 texture_id_; - uint32 context_id_; }; // A picture buffer that lives in system memory. |