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

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

Issue 2774933003: Fixes WebVR presentation from within VRShell. (Closed)
Patch Set: Rebased on ToT, nits 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
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell.h ('k') | chrome/browser/android/vr_shell/vr_shell_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 904c41ab5931df6aaaee0b74396c96a55f7df0b4..01f0f19d925c3c772b3190a92f3fee1115fe284b 100644
--- a/chrome/browser/android/vr_shell/vr_shell.cc
+++ b/chrome/browser/android/vr_shell/vr_shell.cc
@@ -397,6 +397,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) {
@@ -431,10 +438,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_);
}
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell.h ('k') | chrome/browser/android/vr_shell/vr_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698