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 25 matching lines...) Expand all Loading... |
36 class ScopedJavaSurface; | 36 class ScopedJavaSurface; |
37 class SurfaceTexture; | 37 class SurfaceTexture; |
38 } | 38 } |
39 | 39 |
40 namespace gpu { | 40 namespace gpu { |
41 struct MailboxHolder; | 41 struct MailboxHolder; |
42 } | 42 } |
43 | 43 |
44 namespace vr_shell { | 44 namespace vr_shell { |
45 | 45 |
| 46 class FPSMeter; |
46 class MailboxToSurfaceBridge; | 47 class MailboxToSurfaceBridge; |
47 class UiScene; | 48 class UiScene; |
48 class VrController; | 49 class VrController; |
49 class VrShell; | 50 class VrShell; |
50 class VrShellRenderer; | 51 class VrShellRenderer; |
51 struct ContentRectangle; | 52 struct ContentRectangle; |
52 | 53 |
53 struct WebVrBounds { | 54 struct WebVrBounds { |
54 WebVrBounds(gvr::Rectf left, gvr::Rectf right, gvr::Sizei size) | 55 WebVrBounds(gvr::Rectf left, gvr::Rectf right, gvr::Sizei size) |
55 : left_bounds(left), right_bounds(right), source_size(size) {} | 56 : left_bounds(left), right_bounds(right), source_size(size) {} |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 base::WeakPtr<VrShell> weak_vr_shell_; | 233 base::WeakPtr<VrShell> weak_vr_shell_; |
233 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; | 234 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; |
234 | 235 |
235 uint8_t frame_index_ = 0; | 236 uint8_t frame_index_ = 0; |
236 // Larger than frame_index_ so it can be initialized out-of-band. | 237 // Larger than frame_index_ so it can be initialized out-of-band. |
237 uint16_t last_frame_index_ = -1; | 238 uint16_t last_frame_index_ = -1; |
238 | 239 |
239 // Attributes for gesture detection while holding app button. | 240 // Attributes for gesture detection while holding app button. |
240 gvr::Vec3f controller_start_direction_; | 241 gvr::Vec3f controller_start_direction_; |
241 | 242 |
| 243 std::unique_ptr<FPSMeter> fps_meter_; |
| 244 |
242 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_; | 245 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_; |
243 | 246 |
244 DISALLOW_COPY_AND_ASSIGN(VrShellGl); | 247 DISALLOW_COPY_AND_ASSIGN(VrShellGl); |
245 }; | 248 }; |
246 | 249 |
247 } // namespace vr_shell | 250 } // namespace vr_shell |
248 | 251 |
249 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ | 252 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ |
OLD | NEW |