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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 5 #ifndef WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
6 #define WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 6 #define WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/message_loop.h" 14 #include "base/message_loop.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "cc/layers/video_frame_provider.h" 16 #include "cc/layers/video_frame_provider.h"
17 #include "gpu/command_buffer/common/mailbox.h"
17 #include "media/base/android/media_player_android.h" 18 #include "media/base/android/media_player_android.h"
18 #include "media/base/demuxer_stream.h" 19 #include "media/base/demuxer_stream.h"
19 #include "media/base/media_keys.h" 20 #include "media/base/media_keys.h"
20 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" 21 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
21 #include "third_party/WebKit/public/platform/WebSize.h" 22 #include "third_party/WebKit/public/platform/WebSize.h"
22 #include "third_party/WebKit/public/platform/WebURL.h" 23 #include "third_party/WebKit/public/platform/WebURL.h"
23 #include "third_party/WebKit/public/web/WebMediaPlayer.h" 24 #include "third_party/WebKit/public/web/WebMediaPlayer.h"
24 #include "ui/gfx/rect_f.h" 25 #include "ui/gfx/rect_f.h"
25 #include "webkit/renderer/media/android/media_source_delegate.h" 26 #include "webkit/renderer/media/android/media_source_delegate.h"
26 #include "webkit/renderer/media/android/stream_texture_factory_android.h" 27 #include "webkit/renderer/media/android/stream_texture_factory_android.h"
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 // Player ID assigned by the |manager_|. 316 // Player ID assigned by the |manager_|.
316 int player_id_; 317 int player_id_;
317 318
318 // Current player states. 319 // Current player states.
319 WebKit::WebMediaPlayer::NetworkState network_state_; 320 WebKit::WebMediaPlayer::NetworkState network_state_;
320 WebKit::WebMediaPlayer::ReadyState ready_state_; 321 WebKit::WebMediaPlayer::ReadyState ready_state_;
321 322
322 // GL texture ID allocated to the video. 323 // GL texture ID allocated to the video.
323 unsigned int texture_id_; 324 unsigned int texture_id_;
324 325
326 // GL texture mailbox for texture_id_ to provide in the VideoFrame, and sync
327 // point for when the mailbox was produced.
328 gpu::Mailbox texture_mailbox_;
329 unsigned int texture_mailbox_sync_point_;
330
325 // Stream texture ID allocated to the video. 331 // Stream texture ID allocated to the video.
326 unsigned int stream_id_; 332 unsigned int stream_id_;
327 333
328 // Whether the mediaplayer is playing. 334 // Whether the mediaplayer is playing.
329 bool is_playing_; 335 bool is_playing_;
330 336
331 // Whether media player needs to re-establish the surface texture peer. 337 // Whether media player needs to re-establish the surface texture peer.
332 bool needs_establish_peer_; 338 bool needs_establish_peer_;
333 339
334 // Whether |stream_texture_proxy_| is initialized. 340 // Whether |stream_texture_proxy_| is initialized.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 404
399 // The decryptor that manages decryption keys and decrypts encrypted frames. 405 // The decryptor that manages decryption keys and decrypts encrypted frames.
400 scoped_ptr<ProxyDecryptor> decryptor_; 406 scoped_ptr<ProxyDecryptor> decryptor_;
401 407
402 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 408 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
403 }; 409 };
404 410
405 } // namespace webkit_media 411 } // namespace webkit_media
406 412
407 #endif // WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 413 #endif // WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698