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

Unified Diff: webkit/compositor_bindings/web_video_layer_impl.cc

Issue 11754003: Move VideoFrameProvider to, and remove all usage of WebVideoFrame from cc/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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/android/webmediaplayer_android.cc » ('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 4785f3e98b0fc17e48007c499a11c245a0498caf..43fd2b2d284c9f7b5217d0bf2a316d3b74439267 100644
--- a/webkit/compositor_bindings/web_video_layer_impl.cc
+++ b/webkit/compositor_bindings/web_video_layer_impl.cc
@@ -7,15 +7,14 @@
#include "base/bind.h"
#include "cc/video_layer.h"
#include "webkit/compositor_bindings/web_layer_impl.h"
+#include "webkit/compositor_bindings/web_to_ccvideo_frame_provider.h"
#include "webkit/media/webvideoframe_impl.h"
namespace WebKit {
-WebVideoLayerImpl::WebVideoLayerImpl(WebVideoFrameProvider* provider)
- : m_layer(new WebLayerImpl(
- cc::VideoLayer::create(
- provider,
- base::Bind(webkit_media::WebVideoFrameImpl::toVideoFrame))))
+WebVideoLayerImpl::WebVideoLayerImpl(WebVideoFrameProvider* web_provider)
+ : m_providerAdapter(webkit::WebToCCVideoFrameProvider::Create(web_provider))
+ , m_layer(new WebLayerImpl(cc::VideoLayer::create(m_providerAdapter.get())))
{
}
« no previous file with comments | « webkit/compositor_bindings/web_video_layer_impl.h ('k') | webkit/media/android/webmediaplayer_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698