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

Unified Diff: content/browser/media/android/browser_media_player_manager.cc

Issue 2567233002: Use GVR async reprojection video surface for fullscreen in VR shell
Patch Set: Refactor using new interface and manager, also rebased Created 3 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
Index: content/browser/media/android/browser_media_player_manager.cc
diff --git a/content/browser/media/android/browser_media_player_manager.cc b/content/browser/media/android/browser_media_player_manager.cc
index 906f9d84ba9c10bc5c3a1239c03791ada68cc969..770d2a5176fc36722774c56a844522ccca72855d 100644
--- a/content/browser/media/android/browser_media_player_manager.cc
+++ b/content/browser/media/android/browser_media_player_manager.cc
@@ -441,10 +441,9 @@ void BrowserMediaPlayerManager::OnEnterFullscreen(int player_id) {
base::android::ScopedJavaLocalRef<jobject> embedder(
web_contents()->GetDelegate()->GetContentVideoViewEmbedder());
video_view_.reset(
- new ContentVideoView(this,
- GetContentViewCore(),
- embedder,
- natural_video_size));
+ new ContentVideoView(GetContentViewCore(),
+ embedder));
+ video_view_->CreateVideoSurface(this, natural_video_size);
base::android::ScopedJavaLocalRef<jobject> j_content_video_view =
video_view_->GetJavaObject(base::android::AttachCurrentThread());
« no previous file with comments | « content/browser/android/content_video_view.cc ('k') | content/browser/media/android/browser_surface_view_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698