| 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(); }
|
| };
|
|
|