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

Unified Diff: media/base/android/stream_texture_wrapper.h

Issue 2282633002: Integrate Surface requests with MediaPlayerRenderer (Closed)
Patch Set: Addressed comments. Created 4 years, 3 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/base/android/stream_texture_wrapper.h
diff --git a/media/base/android/stream_texture_wrapper.h b/media/base/android/stream_texture_wrapper.h
index fe4356125cd36718986e11b5afebfcc112324161..def3ac6fab4b9a8d9618f0519b1cad8b24af9931 100644
--- a/media/base/android/stream_texture_wrapper.h
+++ b/media/base/android/stream_texture_wrapper.h
@@ -5,16 +5,13 @@
#ifndef MEDIA_BASE_ANDROID_STREAM_TEXTURE_WRAPPER_H_
#define MEDIA_BASE_ANDROID_STREAM_TEXTURE_WRAPPER_H_
+#include "base/unguessable_token.h"
#include "media/base/video_frame.h"
namespace media {
-class VideoFrame;
// StreamTextureWrapper encapsulates a StreamTexture's creation, initialization
// and registration for later retrieval (in the Browser process).
-//
-// TODO(tguilbert): Support registering the underlying SurfaceTexture so it can
-// be used by a MediaPlayer in the browser process. See crbug.com/627658.
class MEDIA_EXPORT StreamTextureWrapper {
public:
StreamTextureWrapper() {}
@@ -35,6 +32,12 @@ class MEDIA_EXPORT StreamTextureWrapper {
// See StreamTextureWrapperImpl.
virtual scoped_refptr<VideoFrame> GetCurrentFrame() = 0;
+ // Sends the StreamTexture to the browser process, to fulfill the request
+ // identified by |request_token|.
+ // See StreamTextureWrapperImpl.
+ virtual void ForwardStreamTextureForSurfaceRequest(
+ const base::UnguessableToken& request_token) = 0;
+
struct Deleter {
inline void operator()(StreamTextureWrapper* ptr) const { ptr->Destroy(); }
};

Powered by Google App Engine
This is Rietveld 408576698