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

Unified Diff: media/video/picture.h

Issue 14199002: Send hardware video frames with mailboxes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: video-mailbox: merge create/gen/produce Created 7 years, 6 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 5d3b775e85a7b290c85ad6fb83c8374191d15ec6..d5be2276f2be78ad037bfd045798ebd7f629defb 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 "gpu/command_buffer/common/mailbox.h"
#include "media/base/media_export.h"
#include "ui/gfx/size.h"
@@ -16,6 +17,10 @@ namespace media {
class MEDIA_EXPORT PictureBuffer {
public:
PictureBuffer(int32 id, gfx::Size size, uint32 texture_id);
+ PictureBuffer(int32 id,
+ gfx::Size size,
+ uint32 texture_id,
+ const gpu::Mailbox& texture_mailbox);
// Returns the client-specified id of the buffer.
int32 id() const {
@@ -34,10 +39,15 @@ class MEDIA_EXPORT PictureBuffer {
return texture_id_;
}
+ const gpu::Mailbox& texture_mailbox() const {
+ return texture_mailbox_;
+ }
+
private:
int32 id_;
gfx::Size size_;
uint32 texture_id_;
+ gpu::Mailbox texture_mailbox_;
};
// A decoded picture frame.

Powered by Google App Engine
This is Rietveld 408576698