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

Unified Diff: webkit/compositor_bindings/web_video_layer_impl.cc

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.h ('k') | webkit/media/webvideoframe_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/compositor_bindings/web_video_layer_impl.cc
diff --git a/webkit/compositor_bindings/web_video_layer_impl.cc b/webkit/compositor_bindings/web_video_layer_impl.cc
index 95f16c69951b7538ef95a19d084c57409d3759bf..a799b0307e00bb5934abbcd3067c28d2b66098e7 100644
--- a/webkit/compositor_bindings/web_video_layer_impl.cc
+++ b/webkit/compositor_bindings/web_video_layer_impl.cc
@@ -3,10 +3,12 @@
// found in the LICENSE file.
#include "config.h"
-#include "web_video_layer_impl.h"
+#include "webkit/compositor_bindings/web_video_layer_impl.h"
-#include "web_layer_impl.h"
+#include "base/bind.h"
#include "cc/video_layer.h"
+#include "webkit/compositor_bindings/web_layer_impl.h"
+#include "webkit/media/webvideoframe_impl.h"
namespace WebKit {
@@ -16,7 +18,10 @@ WebVideoLayer* WebVideoLayer::create(WebVideoFrameProvider* provider)
}
WebVideoLayerImpl::WebVideoLayerImpl(WebVideoFrameProvider* provider)
- : m_layer(new WebLayerImpl(cc::VideoLayer::create(provider)))
+ : m_layer(new WebLayerImpl(
+ cc::VideoLayer::create(
+ provider,
+ base::Bind(webkit_media::WebVideoFrameImpl::toVideoFrame))))
{
}
« no previous file with comments | « webkit/compositor_bindings/web_video_layer_impl.h ('k') | webkit/media/webvideoframe_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698