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

Unified Diff: media/video/picture.h

Issue 6901036: Update VideoDecode PPAPI structs to be consistent with media structures, part 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 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
Index: media/video/picture.h
diff --git a/media/video/picture.h b/media/video/picture.h
index ec84453fa1f55992d9c665e8832b3be27628f3da..3000f8561a47bac2aa34dcf30340e93a231251d4 100644
--- a/media/video/picture.h
+++ b/media/video/picture.h
@@ -16,22 +16,19 @@ namespace media {
// classes and refactor as needed with the rest of media stack.
class PictureBuffer : public VideoDecodeAccelerator::PictureBuffer {
public:
- PictureBuffer(int32 id, gfx::Size pixel_size,
- std::vector<uint32> color_format, MemoryType memory_type,
+ PictureBuffer(int32 id, gfx::Size pixel_size, MemoryType memory_type,
std::vector<DataPlaneHandle> data_plane_handles);
virtual ~PictureBuffer();
// VideoDecodeAccelerator::PictureBuffer implementation.
virtual int32 GetId() OVERRIDE;
virtual gfx::Size GetSize() OVERRIDE;
- virtual const std::vector<uint32>& GetColorFormat() OVERRIDE;
virtual MemoryType GetMemoryType() OVERRIDE;
virtual std::vector<DataPlaneHandle>& GetPlaneHandles() OVERRIDE;
private:
int32 id_;
gfx::Size pixel_size_;
- std::vector<uint32> color_format_;
MemoryType memory_type_;
std::vector<DataPlaneHandle>& data_plane_handles_;
@@ -40,19 +37,19 @@ class PictureBuffer : public VideoDecodeAccelerator::PictureBuffer {
class Picture : public VideoDecodeAccelerator::Picture {
public:
- Picture(PictureBuffer* picture_buffer, gfx::Size decoded_pixel_size,
+ Picture(int32 picture_buffer_id, gfx::Size decoded_pixel_size,
gfx::Size visible_pixel_size, void* user_handle);
virtual ~Picture();
// VideoDecodeAccelerator::Picture implementation.
- virtual PictureBuffer* picture_buffer() OVERRIDE;
+ virtual int32 GetId() OVERRIDE;
virtual gfx::Size GetDecodedSize() const OVERRIDE;
virtual gfx::Size GetVisibleSize() const OVERRIDE;
virtual void* GetUserHandle() OVERRIDE;
private:
- // Pointer to the picture buffer which contains this picture.
- PictureBuffer* picture_buffer_;
+ // ID of the picture buffer which contains this picture.
+ int32 picture_buffer_id_;
gfx::Size decoded_pixel_size_;
gfx::Size visible_pixel_size_;
void* user_handle_;
« no previous file with comments | « media/media.gyp ('k') | media/video/picture.cc » ('j') | media/video/video_decode_accelerator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698