| 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_NON_PRESENTING_GVR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_NON_PRESENTING_GVR_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_NON_PRESENTING_GVR_DELEGATE_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_NON_PRESENTING_GVR_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 const gpu::MailboxHolder& mailbox) override {} | 32 const gpu::MailboxHolder& mailbox) override {} |
| 33 void UpdateWebVRTextureBounds(int16_t frame_index, | 33 void UpdateWebVRTextureBounds(int16_t frame_index, |
| 34 const gvr::Rectf& left_bounds, | 34 const gvr::Rectf& left_bounds, |
| 35 const gvr::Rectf& right_bounds, | 35 const gvr::Rectf& right_bounds, |
| 36 const gvr::Sizei& source_size) override {} | 36 const gvr::Sizei& source_size) override {} |
| 37 void OnVRVsyncProviderRequest( | 37 void OnVRVsyncProviderRequest( |
| 38 device::mojom::VRVSyncProviderRequest request) override; | 38 device::mojom::VRVSyncProviderRequest request) override; |
| 39 void UpdateVSyncInterval(int64_t timebase_nanos, | 39 void UpdateVSyncInterval(int64_t timebase_nanos, |
| 40 double interval_seconds) override; | 40 double interval_seconds) override; |
| 41 bool SupportsPresentation() override; | 41 bool SupportsPresentation() override; |
| 42 void ResetPose() override; | |
| 43 void CreateVRDisplayInfo( | 42 void CreateVRDisplayInfo( |
| 44 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback, | 43 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback, |
| 45 uint32_t device_id) override; | 44 uint32_t device_id) override; |
| 46 | 45 |
| 47 void Pause(); | 46 void Pause(); |
| 48 void Resume(); | 47 void Resume(); |
| 49 device::mojom::VRVSyncProviderRequest OnSwitchToPresentingDelegate(); | 48 device::mojom::VRVSyncProviderRequest OnSwitchToPresentingDelegate(); |
| 50 | 49 |
| 51 private: | 50 private: |
| 52 void StopVSyncLoop(); | 51 void StopVSyncLoop(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 70 GetVSyncCallback callback_; | 69 GetVSyncCallback callback_; |
| 71 mojo::Binding<device::mojom::VRVSyncProvider> binding_; | 70 mojo::Binding<device::mojom::VRVSyncProvider> binding_; |
| 72 base::WeakPtrFactory<NonPresentingGvrDelegate> weak_ptr_factory_; | 71 base::WeakPtrFactory<NonPresentingGvrDelegate> weak_ptr_factory_; |
| 73 | 72 |
| 74 DISALLOW_COPY_AND_ASSIGN(NonPresentingGvrDelegate); | 73 DISALLOW_COPY_AND_ASSIGN(NonPresentingGvrDelegate); |
| 75 }; | 74 }; |
| 76 | 75 |
| 77 } // namespace vr_shell | 76 } // namespace vr_shell |
| 78 | 77 |
| 79 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_NON_PRESENTING_GVR_DELEGATE_H_ | 78 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_NON_PRESENTING_GVR_DELEGATE_H_ |
| OLD | NEW |