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

Unified Diff: content/renderer/media/android/webmediaplayer_android.h

Issue 14199002: Send hardware video frames with mailboxes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: video-mailbox: virtualandroid 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: content/renderer/media/android/webmediaplayer_android.h
diff --git a/content/renderer/media/android/webmediaplayer_android.h b/content/renderer/media/android/webmediaplayer_android.h
index 00f044443c4ba5658e48213d389a9cd73f2190af..fe753a1568cd4af8f9bd5c0289f21a4a3f3a336f 100644
--- a/content/renderer/media/android/webmediaplayer_android.h
+++ b/content/renderer/media/android/webmediaplayer_android.h
@@ -17,6 +17,7 @@
#include "content/renderer/media/android/media_info_loader.h"
#include "content/renderer/media/android/media_source_delegate.h"
#include "content/renderer/media/android/stream_texture_factory_android.h"
+#include "gpu/command_buffer/common/mailbox.h"
#include "media/base/android/media_player_android.h"
#include "media/base/demuxer_stream.h"
#include "media/base/media_keys.h"
@@ -332,6 +333,11 @@ class WebMediaPlayerAndroid
// GL texture ID allocated to the video.
unsigned int texture_id_;
+ // GL texture mailbox for texture_id_ to provide in the VideoFrame, and sync
+ // point for when the mailbox was produced.
+ gpu::Mailbox texture_mailbox_;
+ unsigned int texture_mailbox_sync_point_;
+
// Stream texture ID allocated to the video.
unsigned int stream_id_;

Powered by Google App Engine
This is Rietveld 408576698