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

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

Issue 2749703007: Add menu mode plumbing for WebVR mode. (Closed)
Patch Set: 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
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 54bc7d34ef802c1b9114c5d848eaf7222528b871..ce469179cd0181fef6d06ec90346df5e8ba50a08 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);

Powered by Google App Engine
This is Rietveld 408576698