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

Unified Diff: chrome/browser/android/vr_shell/vr_shell.cc

Issue 2774933003: Fixes WebVR presentation from within VRShell. (Closed)
Patch Set: Created 3 years, 9 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: chrome/browser/android/vr_shell/vr_shell.cc
diff --git a/chrome/browser/android/vr_shell/vr_shell.cc b/chrome/browser/android/vr_shell/vr_shell.cc
index a9f3bff1aa4e5845726f4dd48dfc6e0435aa36ae..47f42b2716d664366b2ffffae6ceb56882eee167 100644
--- a/chrome/browser/android/vr_shell/vr_shell.cc
+++ b/chrome/browser/android/vr_shell/vr_shell.cc
@@ -371,6 +371,13 @@ void VrShell::CreateVRDisplayInfo(
device_id));
}
+void VrShell::SetSubmitClient(
+ device::mojom::VRSubmitFrameClientPtr submit_client) {
+ PostToGlThreadWhenReady(
+ base::Bind(&VrShellGl::SetSubmitClient, gl_thread_->GetVrShellGl(),
+ base::Passed(submit_client.PassInterface())));
+}
+
base::android::ScopedJavaGlobalRef<jobject> VrShell::TakeContentSurface(
JNIEnv* env,
const JavaParamRef<jobject>& obj) {
@@ -405,10 +412,6 @@ void VrShell::ContentSurfaceChanged(jobject surface) {
}
void VrShell::GvrDelegateReady() {
- PostToGlThreadWhenReady(base::Bind(
- &VrShellGl::SetSubmitClient, gl_thread_->GetVrShellGl(),
- base::Passed(
- delegate_provider_->TakeSubmitFrameClient().PassInterface())));
delegate_provider_->SetPresentingDelegate(this, gvr_api_);
tiborg 2017/03/24 21:58:51 It would be helpful if this call was made in the c
mthiesse 2017/03/30 15:29:46 What do you mean by the rendering doesn't start? H
tiborg 2017/03/30 22:19:57 It goes into the binocular view but it does not re
}

Powered by Google App Engine
This is Rietveld 408576698