| OLD | NEW |
| 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_GL_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <queue> | 9 #include <queue> |
| 10 | 10 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 void GvrInit(gvr_context* gvr_api); | 94 void GvrInit(gvr_context* gvr_api); |
| 95 void InitializeRenderer(); | 95 void InitializeRenderer(); |
| 96 void DrawFrame(); | 96 void DrawFrame(); |
| 97 void DrawVrShell(const gvr::Mat4f& head_pose, gvr::Frame &frame); | 97 void DrawVrShell(const gvr::Mat4f& head_pose, gvr::Frame &frame); |
| 98 void DrawUiView(const gvr::Mat4f* head_pose, | 98 void DrawUiView(const gvr::Mat4f* head_pose, |
| 99 const std::vector<const ContentRectangle*>& elements, | 99 const std::vector<const ContentRectangle*>& elements, |
| 100 const gvr::Sizei& render_size, int viewport_offset); | 100 const gvr::Sizei& render_size, int viewport_offset); |
| 101 void DrawElements(const gvr::Mat4f& render_matrix, | 101 void DrawElements(const gvr::Mat4f& render_matrix, |
| 102 const std::vector<const ContentRectangle*>& elements); | 102 const std::vector<const ContentRectangle*>& elements); |
| 103 void DrawCursor(const gvr::Mat4f& render_matrix); | 103 void DrawCursor(const gvr::Mat4f& render_matrix); |
| 104 void DrawBackground(const gvr::Mat4f& render_matrix); | |
| 105 void DrawWebVr(); | 104 void DrawWebVr(); |
| 106 bool WebVrPoseByteIsValid(int pose_index_byte); | 105 bool WebVrPoseByteIsValid(int pose_index_byte); |
| 107 | 106 |
| 108 void UpdateController(const gvr::Vec3f& forward_vector); | 107 void UpdateController(const gvr::Vec3f& forward_vector); |
| 109 void SendEventsToTarget(InputTarget input_target, int pixel_x, | 108 void SendEventsToTarget(InputTarget input_target, int pixel_x, |
| 110 int pixel_y); | 109 int pixel_y); |
| 111 void SendGesture(InputTarget input_target, | 110 void SendGesture(InputTarget input_target, |
| 112 std::unique_ptr<blink::WebInputEvent> event); | 111 std::unique_ptr<blink::WebInputEvent> event); |
| 113 | 112 |
| 114 void OnUIFrameAvailable(); | 113 void OnUIFrameAvailable(); |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 uint16_t last_frame_index_ = -1; | 196 uint16_t last_frame_index_ = -1; |
| 198 | 197 |
| 199 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_; | 198 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_; |
| 200 | 199 |
| 201 DISALLOW_COPY_AND_ASSIGN(VrShellGl); | 200 DISALLOW_COPY_AND_ASSIGN(VrShellGl); |
| 202 }; | 201 }; |
| 203 | 202 |
| 204 } // namespace vr_shell | 203 } // namespace vr_shell |
| 205 | 204 |
| 206 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ | 205 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ |
| OLD | NEW |