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 DEVICE_VR_VR_DISPLAY_IMPL_H | 5 #ifndef DEVICE_VR_VR_DISPLAY_IMPL_H |
6 #define DEVICE_VR_VR_DISPLAY_IMPL_H | 6 #define DEVICE_VR_VR_DISPLAY_IMPL_H |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 public: | 22 public: |
23 VRDisplayImpl(device::VRDevice* device, VRServiceImpl* service); | 23 VRDisplayImpl(device::VRDevice* device, VRServiceImpl* service); |
24 ~VRDisplayImpl() override; | 24 ~VRDisplayImpl() override; |
25 | 25 |
26 mojom::VRDisplayClient* client() { return client_.get(); } | 26 mojom::VRDisplayClient* client() { return client_.get(); } |
27 | 27 |
28 private: | 28 private: |
29 friend class VRDisplayImplTest; | 29 friend class VRDisplayImplTest; |
30 friend class VRServiceImpl; | 30 friend class VRServiceImpl; |
31 | 31 |
32 void GetPose(const GetPoseCallback& callback) override; | |
33 void ResetPose() override; | 32 void ResetPose() override; |
34 | 33 |
35 void RequestPresent(bool secure_origin, | 34 void RequestPresent(bool secure_origin, |
36 const RequestPresentCallback& callback) override; | 35 const RequestPresentCallback& callback) override; |
37 void ExitPresent() override; | 36 void ExitPresent() override; |
38 void SubmitFrame(mojom::VRPosePtr pose) override; | 37 void SubmitFrame(mojom::VRPosePtr pose) override; |
39 | 38 |
40 void UpdateLayerBounds(mojom::VRLayerBoundsPtr left_bounds, | 39 void UpdateLayerBounds(mojom::VRLayerBoundsPtr left_bounds, |
41 mojom::VRLayerBoundsPtr right_bounds) override; | 40 mojom::VRLayerBoundsPtr right_bounds) override; |
| 41 void GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) override; |
42 | 42 |
43 void RequestPresentResult(const RequestPresentCallback& callback, | 43 void RequestPresentResult(const RequestPresentCallback& callback, |
44 bool secure_origin, | 44 bool secure_origin, |
45 bool success); | 45 bool success); |
46 | 46 |
47 mojo::Binding<mojom::VRDisplay> binding_; | 47 mojo::Binding<mojom::VRDisplay> binding_; |
48 mojom::VRDisplayClientPtr client_; | 48 mojom::VRDisplayClientPtr client_; |
49 device::VRDevice* device_; | 49 device::VRDevice* device_; |
50 VRServiceImpl* service_; | 50 VRServiceImpl* service_; |
51 | 51 |
52 base::WeakPtrFactory<VRDisplayImpl> weak_ptr_factory_; | 52 base::WeakPtrFactory<VRDisplayImpl> weak_ptr_factory_; |
53 }; | 53 }; |
54 | 54 |
55 } // namespace device | 55 } // namespace device |
56 | 56 |
57 #endif // DEVICE_VR_VR_DISPLAY_IMPL_H | 57 #endif // DEVICE_VR_VR_DISPLAY_IMPL_H |
OLD | NEW |