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

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

Issue 2861003003: VR: Enable browsing for CCT and make ui_scene_manager aware of whether we're in CCT. (Closed)
Patch Set: Fix test compile Created 3 years, 7 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') | no next file » | 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 49362ef2b89d248065e793b4d0f8bb1241d38b27..5d7b6bbb6ea9851693c9ed9fecc6710b1cadaaee 100644
--- a/chrome/browser/android/vr_shell/vr_shell.cc
+++ b/chrome/browser/android/vr_shell/vr_shell.cc
@@ -83,6 +83,7 @@ VrShell::VrShell(JNIEnv* env,
jobject obj,
ui::WindowAndroid* window,
bool for_web_vr,
+ bool in_cct,
VrShellDelegate* delegate,
gvr_context* gvr_api,
bool reprojected_rendering)
@@ -99,9 +100,9 @@ VrShell::VrShell(JNIEnv* env,
g_instance = this;
j_vr_shell_.Reset(env, obj);
- gl_thread_ = base::MakeUnique<VrGLThread>(weak_ptr_factory_.GetWeakPtr(),
- main_thread_task_runner_, gvr_api,
- for_web_vr, reprojected_rendering_);
+ gl_thread_ = base::MakeUnique<VrGLThread>(
+ weak_ptr_factory_.GetWeakPtr(), main_thread_task_runner_, gvr_api,
+ for_web_vr, in_cct, reprojected_rendering_);
base::Thread::Options options(base::MessageLoop::TYPE_DEFAULT, 0);
options.priority = base::ThreadPriority::DISPLAY;
@@ -556,11 +557,13 @@ jlong Init(JNIEnv* env,
const JavaParamRef<jobject>& delegate,
jlong window_android,
jboolean for_web_vr,
+ jboolean in_cct,
jlong gvr_api,
jboolean reprojected_rendering) {
return reinterpret_cast<intptr_t>(new VrShell(
env, obj, reinterpret_cast<ui::WindowAndroid*>(window_android),
- for_web_vr, VrShellDelegate::GetNativeVrShellDelegate(env, delegate),
+ for_web_vr, in_cct,
+ VrShellDelegate::GetNativeVrShellDelegate(env, delegate),
reinterpret_cast<gvr_context*>(gvr_api), reprojected_rendering));
}
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698