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

Unified Diff: content/renderer/render_view_impl.cc

Issue 10695181: [Android] Upstream all the IPC communications/handlings for stream texture (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove #pragma once Created 8 years, 5 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 | « content/renderer/media/stream_texture_factory_impl_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 29e7b65c5a472308c125ac0d385e1e516f1857eb..ded798b3756eba2074871009b855ba351df0abab 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -189,6 +189,7 @@
#include "webkit/plugins/ppapi/ppapi_webplugin_impl.h"
#if defined(OS_ANDROID)
+#include "content/renderer/media/stream_texture_factory_impl_android.h"
#include "webkit/media/android/webmediaplayer_android.h"
#include "webkit/media/android/webmediaplayer_manager_android.h"
#elif defined(OS_WIN)
@@ -2336,10 +2337,11 @@ WebMediaPlayer* RenderViewImpl::createMediaPlayer(
RenderViewObserver, observers_, WillCreateMediaPlayer(frame, client));
#if defined(OS_ANDROID)
- // TODO(qinmin): upstream the implementation of StreamTextureFactoryImpl
- // to replace the NULL param here.
+ // TODO(qinmin): upstream the implementation of getting WebGraphicsContext3D
+ // and GpuChannelHost here to replace the NULL params.
return new webkit_media::WebMediaPlayerAndroid(
- frame, client, cookieJar(frame), media_player_manager_.get(), NULL);
+ frame, client, cookieJar(frame), media_player_manager_.get(),
+ new content::StreamTextureFactoryImpl(NULL, NULL, routing_id_));
#endif
media::MessageLoopFactory* message_loop_factory =
« no previous file with comments | « content/renderer/media/stream_texture_factory_impl_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698