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

Unified Diff: webkit/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: remove extra produce in webmediaplayer_impl 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: webkit/renderer/media/android/webmediaplayer_android.h
diff --git a/webkit/renderer/media/android/webmediaplayer_android.h b/webkit/renderer/media/android/webmediaplayer_android.h
index 90b08852c7f36842709a75f127e427eaaf4ea5ef..a10939e3aa66f00b34cddc22117439bb2193deaf 100644
--- a/webkit/renderer/media/android/webmediaplayer_android.h
+++ b/webkit/renderer/media/android/webmediaplayer_android.h
@@ -14,6 +14,7 @@
#include "base/message_loop.h"
#include "base/time.h"
#include "cc/layers/video_frame_provider.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"
@@ -322,6 +323,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