| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 void UpdateWebVRTextureBounds(int16_t frame_index, | 94 void UpdateWebVRTextureBounds(int16_t frame_index, |
| 95 const gvr::Rectf& left_bounds, | 95 const gvr::Rectf& left_bounds, |
| 96 const gvr::Rectf& right_bounds, | 96 const gvr::Rectf& right_bounds, |
| 97 const gvr::Sizei& source_size); | 97 const gvr::Sizei& source_size); |
| 98 | 98 |
| 99 void UpdateScene(std::unique_ptr<base::ListValue> commands); | 99 void UpdateScene(std::unique_ptr<base::ListValue> commands); |
| 100 | 100 |
| 101 void UpdateVSyncInterval(int64_t timebase_nanos, double interval_seconds); | 101 void UpdateVSyncInterval(int64_t timebase_nanos, double interval_seconds); |
| 102 | 102 |
| 103 void OnRequest(device::mojom::VRVSyncProviderRequest request); | 103 void OnRequest(device::mojom::VRVSyncProviderRequest request); |
| 104 void ResetPose(); | |
| 105 void CreateVRDisplayInfo( | 104 void CreateVRDisplayInfo( |
| 106 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback, | 105 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback, |
| 107 uint32_t device_id); | 106 uint32_t device_id); |
| 108 void SubmitWebVRFrame(int16_t frame_index, const gpu::MailboxHolder& mailbox); | 107 void SubmitWebVRFrame(int16_t frame_index, const gpu::MailboxHolder& mailbox); |
| 109 void SetSubmitClient( | 108 void SetSubmitClient( |
| 110 device::mojom::VRSubmitFrameClientPtrInfo submit_client_info); | 109 device::mojom::VRSubmitFrameClientPtrInfo submit_client_info); |
| 111 | 110 |
| 112 private: | 111 private: |
| 113 void GvrInit(gvr_context* gvr_api); | 112 void GvrInit(gvr_context* gvr_api); |
| 114 void InitializeRenderer(); | 113 void InitializeRenderer(); |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 gvr::Vec3f controller_start_direction_; | 237 gvr::Vec3f controller_start_direction_; |
| 239 | 238 |
| 240 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_; | 239 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_; |
| 241 | 240 |
| 242 DISALLOW_COPY_AND_ASSIGN(VrShellGl); | 241 DISALLOW_COPY_AND_ASSIGN(VrShellGl); |
| 243 }; | 242 }; |
| 244 | 243 |
| 245 } // namespace vr_shell | 244 } // namespace vr_shell |
| 246 | 245 |
| 247 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ | 246 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ |
| OLD | NEW |