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

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

Issue 2955483003: Show splash screen when entering VR from a deep-link (Closed)
Patch Set: fix compile error on bots Created 3 years, 6 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_gl_thread.h ('k') | chrome/browser/android/vr_shell/vr_shell.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_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 b1fc913860660a52d51e604990c46196be2aa30d..d814a04d8fc7e3ea2fd503aed1f9fbd22033143d 100644
--- a/chrome/browser/android/vr_shell/vr_gl_thread.cc
+++ b/chrome/browser/android/vr_shell/vr_gl_thread.cc
@@ -12,6 +12,7 @@
#include "chrome/browser/android/vr_shell/vr_input_manager.h"
#include "chrome/browser/android/vr_shell/vr_shell.h"
#include "chrome/browser/android/vr_shell/vr_shell_gl.h"
+#include "third_party/skia/include/core/SkBitmap.h"
namespace vr_shell {
@@ -20,7 +21,7 @@ VrGLThread::VrGLThread(
scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner,
gvr_context* gvr_api,
bool initially_web_vr,
- bool web_vr_autopresented,
+ bool web_vr_autopresentation_expected,
bool in_cct,
bool reprojected_rendering,
bool daydream_support)
@@ -29,7 +30,7 @@ VrGLThread::VrGLThread(
main_thread_task_runner_(std::move(main_thread_task_runner)),
gvr_api_(gvr_api),
initially_web_vr_(initially_web_vr),
- web_vr_autopresented_(web_vr_autopresented),
+ web_vr_autopresentation_expected_(web_vr_autopresentation_expected),
in_cct_(in_cct),
reprojected_rendering_(reprojected_rendering),
daydream_support_(daydream_support) {}
@@ -44,7 +45,8 @@ void VrGLThread::Init() {
reprojected_rendering_,
daydream_support_, scene_.get());
scene_manager_ = base::MakeUnique<UiSceneManager>(
- this, scene_.get(), in_cct_, initially_web_vr_, web_vr_autopresented_);
+ this, scene_.get(), in_cct_, initially_web_vr_,
+ web_vr_autopresentation_expected_);
weak_vr_shell_gl_ = vr_shell_gl_->GetWeakPtr();
weak_scene_manager_ = scene_manager_->GetWeakPtr();
@@ -191,13 +193,11 @@ void VrGLThread::SetURL(const GURL& gurl) {
weak_scene_manager_, gurl));
}
-void VrGLThread::SetWebVrMode(bool enabled,
- bool auto_presented,
- bool show_toast) {
+void VrGLThread::SetWebVrMode(bool enabled, bool show_toast) {
WaitUntilThreadStarted();
task_runner()->PostTask(
FROM_HERE, base::Bind(&UiSceneManager::SetWebVrMode, weak_scene_manager_,
- enabled, auto_presented, show_toast));
+ enabled, show_toast));
}
void VrGLThread::SetWebVrSecureOrigin(bool secure) {
@@ -231,6 +231,13 @@ void VrGLThread::SetIsExiting() {
weak_scene_manager_));
}
+void VrGLThread::SetSplashScreenIcon(const SkBitmap& bitmap) {
+ WaitUntilThreadStarted();
+ task_runner()->PostTask(FROM_HERE,
+ base::Bind(&UiSceneManager::SetSplashScreenIcon,
+ weak_scene_manager_, bitmap));
+}
+
void VrGLThread::CleanUp() {
scene_manager_.reset();
vr_shell_gl_.reset();
« no previous file with comments | « chrome/browser/android/vr_shell/vr_gl_thread.h ('k') | chrome/browser/android/vr_shell/vr_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698