Chromium Code Reviews| 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
|
| } |