| Index: webkit/media/webvideoframe_impl.cc
|
| diff --git a/webkit/media/webvideoframe_impl.cc b/webkit/media/webvideoframe_impl.cc
|
| index b1c1dc77ecd40cebd41a4d4cb831110a3cdc7994..ae0a9e8ef90ac3e8b7372fd142c02188362eb48b 100644
|
| --- a/webkit/media/webvideoframe_impl.cc
|
| +++ b/webkit/media/webvideoframe_impl.cc
|
| @@ -14,4 +14,21 @@ WebVideoFrameImpl::WebVideoFrameImpl(
|
|
|
| WebVideoFrameImpl::~WebVideoFrameImpl() {}
|
|
|
| +WebKit::WebVideoFrame::Format WebVideoFrameImpl::format() const
|
| +{
|
| + // media::VideoFrame::Format is in sync with WebKit::WebVideoFrame::Format
|
| + return video_frame ?
|
| + (WebKit::WebVideoFrame::Format)(video_frame->format()) :
|
| + WebKit::WebVideoFrame::FormatInvalid;
|
| +}
|
| +
|
| +unsigned WebVideoFrameImpl::textureId() const
|
| +{
|
| + return video_frame ? video_frame->texture_id() : 0;
|
| +}
|
| +
|
| +unsigned WebVideoFrameImpl::textureTarget() const
|
| +{
|
| + return video_frame ? video_frame->texture_target() : 0;
|
| +}
|
| } // namespace webkit_media
|
|
|