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

Side by Side Diff: chrome/browser/android/vr_shell/vr_shell.h

Issue 2509483002: Fixed WebVR HTTP warning only rendering in the right eye (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/vr_shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 void QueueTask(base::Callback<void()>& callback); 115 void QueueTask(base::Callback<void()>& callback);
116 116
117 // Perform a UI action triggered by the javascript API. 117 // Perform a UI action triggered by the javascript API.
118 void DoUiAction(const UiAction action); 118 void DoUiAction(const UiAction action);
119 119
120 private: 120 private:
121 ~VrShell() override; 121 ~VrShell() override;
122 void LoadUIContent(); 122 void LoadUIContent();
123 void DrawVrShell(const gvr::Mat4f& head_pose, gvr::Frame &frame); 123 void DrawVrShell(const gvr::Mat4f& head_pose, gvr::Frame &frame);
124 void DrawUiView(const gvr::Mat4f* head_pose, 124 void DrawUiView(const gvr::Mat4f* head_pose,
125 const std::vector<const ContentRectangle*>& elements, 125 const std::vector<const ContentRectangle*>& elements);
126 bool clear);
127 void DrawElements(const gvr::Mat4f& render_matrix, 126 void DrawElements(const gvr::Mat4f& render_matrix,
128 const std::vector<const ContentRectangle*>& elements); 127 const std::vector<const ContentRectangle*>& elements);
129 void DrawCursor(const gvr::Mat4f& render_matrix); 128 void DrawCursor(const gvr::Mat4f& render_matrix);
130 void DrawWebVr(); 129 void DrawWebVr();
131 130
132 void UpdateController(const gvr::Vec3f& forward_vector); 131 void UpdateController(const gvr::Vec3f& forward_vector);
133 void SendEventsToTarget(VrInputManager* input_target, 132 void SendEventsToTarget(VrInputManager* input_target,
134 int pixel_x, 133 int pixel_x,
135 int pixel_y); 134 int pixel_y);
136 135
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 base::WeakPtrFactory<VrShell> weak_ptr_factory_; 200 base::WeakPtrFactory<VrShell> weak_ptr_factory_;
202 201
203 DISALLOW_COPY_AND_ASSIGN(VrShell); 202 DISALLOW_COPY_AND_ASSIGN(VrShell);
204 }; 203 };
205 204
206 bool RegisterVrShell(JNIEnv* env); 205 bool RegisterVrShell(JNIEnv* env);
207 206
208 } // namespace vr_shell 207 } // namespace vr_shell
209 208
210 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ 209 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/vr_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698