Index: webkit/media/webvideoframe_impl.h |
diff --git a/webkit/media/webvideoframe_impl.h b/webkit/media/webvideoframe_impl.h |
index 2f0103742557a028ec9a03ca30fd0ab75df8278d..5125112b86133e6effd5fff37ba058806a7d709d 100644 |
--- a/webkit/media/webvideoframe_impl.h |
+++ b/webkit/media/webvideoframe_impl.h |
@@ -33,6 +33,17 @@ class WebVideoFrameImpl : public WebKit::WebVideoFrame { |
DISALLOW_COPY_AND_ASSIGN(WebVideoFrameImpl); |
}; |
+// TODO(skaslev) This is temporarily inline pending the removal of |
+// WebKit::WebVideoFrame and WebVideoFrameImpl which are currently unused. |
+inline media::VideoFrame* WebVideoFrameImpl::toVideoFrame( |
+ WebKit::WebVideoFrame* web_video_frame) { |
+ WebVideoFrameImpl* wrapped_frame = |
+ static_cast<WebVideoFrameImpl*>(web_video_frame); |
+ if (wrapped_frame) |
+ return wrapped_frame->video_frame_.get(); |
+ return NULL; |
+} |
+ |
} // namespace webkit_media |
#endif // WEBKIT_MEDIA_WEBVIDEOFRAME_IMPL_H_ |