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