| Index: media/base/video_frame.h
|
| diff --git a/media/base/video_frame.h b/media/base/video_frame.h
|
| index e9e95fd7524c0228ea1d14c0f4419becb2b9153a..8e4c5ee6eb2968474f2b2bbdc6a556a3e501848b 100644
|
| --- a/media/base/video_frame.h
|
| +++ b/media/base/video_frame.h
|
| @@ -55,6 +55,7 @@ class MEDIA_EXPORT VideoFrame : public StreamSample {
|
| // frame is destroyed |no_longer_needed.Run()| will be called.
|
| static scoped_refptr<VideoFrame> WrapNativeTexture(
|
| uint32 texture_id,
|
| + uint32 texture_target,
|
| size_t width,
|
| size_t height,
|
| base::TimeDelta timestamp,
|
| @@ -92,6 +93,9 @@ class MEDIA_EXPORT VideoFrame : public StreamSample {
|
| // call if this is a NATIVE_TEXTURE frame.
|
| uint32 texture_id() const;
|
|
|
| + // Returns the texture target. Only valid for NATIVE_TEXTURE frames.
|
| + uint32 texture_target() const;
|
| +
|
| // StreamSample interface.
|
| virtual bool IsEndOfStream() const OVERRIDE;
|
|
|
| @@ -129,6 +133,7 @@ class MEDIA_EXPORT VideoFrame : public StreamSample {
|
|
|
| // Native texture ID, if this is a NATIVE_TEXTURE frame.
|
| uint32 texture_id_;
|
| + uint32 texture_target_;
|
| base::Closure texture_no_longer_needed_;
|
|
|
| DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame);
|
|
|