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

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

Issue 2749703007: Add menu mode plumbing for WebVR mode. (Closed)
Patch Set: Rename JS WebVR rendering functions for clarity. Created 3 years, 9 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/ui_scene.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 be669b0adb794ac83c1beb50d085b74cfe80f024..28889d2358431a1bfe14fd92eaeebcc9696bdb2d 100644
--- a/chrome/browser/android/vr_shell/vr_shell_gl.h
+++ b/chrome/browser/android/vr_shell/vr_shell_gl.h
@@ -116,17 +116,18 @@ class VrShellGl : public device::mojom::VRVSyncProvider {
void InitializeRenderer();
void DrawFrame(int16_t frame_index);
void DrawVrShellAndUnbind(const gvr::Mat4f& head_pose, gvr::Frame& frame);
- void DrawUiView(const gvr::Mat4f* head_pose,
+ void DrawUiView(const gvr::Mat4f& head_pose,
const std::vector<const ContentRectangle*>& elements,
const gvr::Sizei& render_size,
- int viewport_offset);
+ int viewport_offset,
+ bool draw_cursor);
void DrawElements(const gvr::Mat4f& view_proj_matrix,
- const gvr::Mat4f& view_matrix,
const std::vector<const ContentRectangle*>& elements);
std::vector<const ContentRectangle*> GetElementsInDrawOrder(
const gvr::Mat4f& view_matrix,
const std::vector<const ContentRectangle*>& elements);
void DrawCursor(const gvr::Mat4f& render_matrix);
+ bool ShouldDrawWebVr();
void DrawWebVr();
bool WebVrPoseByteIsValid(int pose_index_byte);
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene.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