Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Unified Diff: webkit/media/webvideoframe_impl.h

Issue 11274017: Added support for YUV videos to the software compositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/compositor_bindings/web_video_layer_impl.cc ('k') | webkit/media/webvideoframe_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « webkit/compositor_bindings/web_video_layer_impl.cc ('k') | webkit/media/webvideoframe_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698