| 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..2983e8dbca4600be8d75c1e5bd33a2c61e311f8b 100644
|
| --- a/media/base/android/stream_texture_wrapper.h
|
| +++ b/media/base/android/stream_texture_wrapper.h
|
| @@ -5,16 +5,14 @@
|
| #ifndef MEDIA_BASE_ANDROID_STREAM_TEXTURE_WRAPPER_H_
|
| #define MEDIA_BASE_ANDROID_STREAM_TEXTURE_WRAPPER_H_
|
|
|
| +#include <stdint.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 +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(
|
| + uint64_t request_token) = 0;
|
| +
|
| struct Deleter {
|
| inline void operator()(StreamTextureWrapper* ptr) const { ptr->Destroy(); }
|
| };
|
|
|