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

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

Issue 2616583002: Fix WebVR support for devices without Async Reprojection. (Closed)
Patch Set: Fix compile? Created 3 years, 11 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/BUILD.gn ('k') | chrome/browser/android/vr_shell/vr_shell.cc » ('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.h
diff --git a/chrome/browser/android/vr_shell/vr_shell.h b/chrome/browser/android/vr_shell/vr_shell.h
index a8387a5cf36608519f87c26c91af0d4b72eb15fe..bf3a72b18334a7b88adfb97ce9f6b600ce199787 100644
--- a/chrome/browser/android/vr_shell/vr_shell.h
+++ b/chrome/browser/android/vr_shell/vr_shell.h
@@ -63,7 +63,8 @@ class VrShell : public device::GvrDelegate, content::WebContentsObserver {
ui::WindowAndroid* ui_window,
bool for_web_vr,
VrShellDelegate* delegate,
- gvr_context* gvr_api);
+ gvr_context* gvr_api,
+ bool reprojected_rendering);
void LoadUIContent(JNIEnv* env,
const base::android::JavaParamRef<jobject>& obj);
@@ -74,6 +75,9 @@ class VrShell : public device::GvrDelegate, content::WebContentsObserver {
const base::android::JavaParamRef<jobject>& obj);
void OnResume(JNIEnv* env,
const base::android::JavaParamRef<jobject>& obj);
+ void SetSurface(JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj,
+ const base::android::JavaParamRef<jobject>& surface);
void SetWebVrMode(JNIEnv* env,
const base::android::JavaParamRef<jobject>& obj,
bool enabled);
@@ -158,6 +162,7 @@ class VrShell : public device::GvrDelegate, content::WebContentsObserver {
scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
std::unique_ptr<base::Thread> gl_thread_;
+ bool reprojected_rendering_;
base::WeakPtrFactory<VrShell> weak_ptr_factory_;
« no previous file with comments | « chrome/browser/android/vr_shell/BUILD.gn ('k') | chrome/browser/android/vr_shell/vr_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698