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

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

Issue 2282633002: Integrate Surface requests with MediaPlayerRenderer (Closed)
Patch Set: Addressed last comments Created 4 years, 2 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
« no previous file with comments | « gpu/ipc/service/stream_texture_android.cc ('k') | media/mojo/clients/mojo_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 83988e2113ff4ddcaa20e279580e3af3abb1d068..0d9dc2f8243d38fe944eb91a04bbd2cbf1e36557 100644
--- a/media/base/android/stream_texture_wrapper.h
+++ b/media/base/android/stream_texture_wrapper.h
@@ -6,16 +6,13 @@
#define MEDIA_BASE_ANDROID_STREAM_TEXTURE_WRAPPER_H_
#include "base/single_thread_task_runner.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() {}
@@ -36,6 +33,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(); }
};
« no previous file with comments | « gpu/ipc/service/stream_texture_android.cc ('k') | media/mojo/clients/mojo_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698