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

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

Issue 2861003003: VR: Enable browsing for CCT and make ui_scene_manager aware of whether we're in CCT. (Closed)
Patch Set: 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
Index: chrome/browser/android/vr_shell/vr_gl_thread.cc
diff --git a/chrome/browser/android/vr_shell/vr_gl_thread.cc b/chrome/browser/android/vr_shell/vr_gl_thread.cc
index 16d08aa97d14aaf6ae34a176297c3b2525b41239..f5fd22cdf49c03da869dc68c00755b3663e8e170 100644
--- a/chrome/browser/android/vr_shell/vr_gl_thread.cc
+++ b/chrome/browser/android/vr_shell/vr_gl_thread.cc
@@ -19,12 +19,14 @@ VrGLThread::VrGLThread(
scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner,
gvr_context* gvr_api,
bool initially_web_vr,
+ bool in_cct,
bool reprojected_rendering)
: base::Thread("VrShellGL"),
weak_vr_shell_(weak_vr_shell),
main_thread_task_runner_(std::move(main_thread_task_runner)),
gvr_api_(gvr_api),
initially_web_vr_(initially_web_vr),
+ in_cct_(in_cct),
reprojected_rendering_(reprojected_rendering) {}
VrGLThread::~VrGLThread() {
@@ -36,7 +38,7 @@ void VrGLThread::Init() {
vr_shell_gl_ = base::MakeUnique<VrShellGl>(
std::move(weak_vr_shell_), std::move(main_thread_task_runner_), gvr_api_,
initially_web_vr_, reprojected_rendering_, scene_.get());
- scene_manager_ = base::MakeUnique<UiSceneManager>(scene_.get());
+ scene_manager_ = base::MakeUnique<UiSceneManager>(scene_.get(), in_cct_);
weak_vr_shell_gl_ = vr_shell_gl_->GetWeakPtr();
weak_scene_manager_ = scene_manager_->GetWeakPtr();

Powered by Google App Engine
This is Rietveld 408576698