| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 gvr::Sizei render_size_headlocked_; | 157 gvr::Sizei render_size_headlocked_; |
| 158 | 158 |
| 159 std::unique_ptr<VrShellRenderer> vr_shell_renderer_; | 159 std::unique_ptr<VrShellRenderer> vr_shell_renderer_; |
| 160 | 160 |
| 161 bool touch_pending_ = false; | 161 bool touch_pending_ = false; |
| 162 gvr::Quatf controller_quat_; | 162 gvr::Quatf controller_quat_; |
| 163 | 163 |
| 164 gvr::Vec3f target_point_; | 164 gvr::Vec3f target_point_; |
| 165 const ContentRectangle* target_element_ = nullptr; | 165 const ContentRectangle* target_element_ = nullptr; |
| 166 InputTarget current_input_target_ = InputTarget::NONE; | 166 InputTarget current_input_target_ = InputTarget::NONE; |
| 167 bool is_scrolling_ = false; |
| 167 int ui_tex_css_width_ = 0; | 168 int ui_tex_css_width_ = 0; |
| 168 int ui_tex_css_height_ = 0; | 169 int ui_tex_css_height_ = 0; |
| 169 int content_tex_css_width_ = 0; | 170 int content_tex_css_width_ = 0; |
| 170 int content_tex_css_height_ = 0; | 171 int content_tex_css_height_ = 0; |
| 171 gvr::Sizei content_tex_physical_size_ = {0, 0}; | 172 gvr::Sizei content_tex_physical_size_ = {0, 0}; |
| 172 gvr::Sizei ui_tex_physical_size_ = {0, 0}; | 173 gvr::Sizei ui_tex_physical_size_ = {0, 0}; |
| 173 | 174 |
| 174 std::vector<gvr::Mat4f> webvr_head_pose_; | 175 std::vector<gvr::Mat4f> webvr_head_pose_; |
| 175 int webvr_texture_id_ = 0; | 176 int webvr_texture_id_ = 0; |
| 176 bool web_vr_mode_; | 177 bool web_vr_mode_; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 199 uint16_t last_frame_index_ = -1; | 200 uint16_t last_frame_index_ = -1; |
| 200 | 201 |
| 201 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_; | 202 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_; |
| 202 | 203 |
| 203 DISALLOW_COPY_AND_ASSIGN(VrShellGl); | 204 DISALLOW_COPY_AND_ASSIGN(VrShellGl); |
| 204 }; | 205 }; |
| 205 | 206 |
| 206 } // namespace vr_shell | 207 } // namespace vr_shell |
| 207 | 208 |
| 208 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ | 209 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ |
| OLD | NEW |