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

Unified Diff: chrome/browser/android/vr_shell/vr_shell_gl.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/vr_shell.cc ('k') | chrome/browser/android/vr_shell/vr_shell_gl.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_gl.h
diff --git a/chrome/browser/android/vr_shell/vr_shell_gl.h b/chrome/browser/android/vr_shell/vr_shell_gl.h
index 1f5d0e3315e50bc9fb025480a18dde73c3975703..50dc67f29b9fccab9ee6d352b5ac0f8b9e2ff61b 100644
--- a/chrome/browser/android/vr_shell/vr_shell_gl.h
+++ b/chrome/browser/android/vr_shell/vr_shell_gl.h
@@ -57,10 +57,12 @@ class VrShellGl {
const base::WeakPtr<VrInputManager>& ui_input_manager,
scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner,
gvr_context* gvr_api,
- bool initially_web_vr);
+ bool initially_web_vr,
+ bool reprojected_rendering);
~VrShellGl();
- bool Initialize();
+ void Initialize();
+ void InitializeGl(gfx::AcceleratedWidget window);
void DrawFrame();
@@ -84,7 +86,6 @@ class VrShellGl {
void UpdateScene(std::unique_ptr<base::ListValue> commands);
private:
- bool InitializeGl();
void GvrInit(gvr_context* gvr_api);
void InitializeRenderer();
void DrawVrShell(const gvr::Mat4f& head_pose, gvr::Frame &frame);
@@ -163,6 +164,8 @@ class VrShellGl {
std::vector<bool> webvr_head_pose_valid_;
int webvr_texture_id_ = 0;
bool web_vr_mode_;
+ bool ready_to_draw_ = false;
+ bool surfaceless_rendering_;
std::unique_ptr<VrController> controller_;
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell.cc ('k') | chrome/browser/android/vr_shell/vr_shell_gl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698