OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_TEST_FAKE_VR_DEVICE_H_ | 5 #ifndef DEVICE_VR_TEST_FAKE_VR_DEVICE_H_ |
6 #define DEVICE_VR_TEST_FAKE_VR_DEVICE_H_ | 6 #define DEVICE_VR_TEST_FAKE_VR_DEVICE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "device/vr/vr_device.h" | 10 #include "device/vr/vr_device.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 void SetPose(const mojom::VRPosePtr& state); | 24 void SetPose(const mojom::VRPosePtr& state); |
25 | 25 |
26 mojom::VRDisplayInfoPtr GetVRDevice() override; | 26 mojom::VRDisplayInfoPtr GetVRDevice() override; |
27 mojom::VRPosePtr GetPose() override; | 27 mojom::VRPosePtr GetPose() override; |
28 void ResetPose() override; | 28 void ResetPose() override; |
29 | 29 |
30 void RequestPresent(const base::Callback<void(bool)>& callback) override; | 30 void RequestPresent(const base::Callback<void(bool)>& callback) override; |
31 void SetSecureOrigin(bool secure_origin) override; | 31 void SetSecureOrigin(bool secure_origin) override; |
32 void ExitPresent() override; | 32 void ExitPresent() override; |
33 void SubmitFrame(mojom::VRPosePtr pose) override; | 33 void SubmitFrame(mojom::VRPosePtr pose) override; |
34 void UpdateLayerBounds(mojom::VRLayerBoundsPtr leftBounds, | 34 void UpdateLayerBounds(int16_t frame_index, |
| 35 mojom::VRLayerBoundsPtr leftBounds, |
35 mojom::VRLayerBoundsPtr rightBounds) override; | 36 mojom::VRLayerBoundsPtr rightBounds) override; |
36 void GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) override; | 37 void GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) override; |
37 | 38 |
38 private: | 39 private: |
39 mojom::VREyeParametersPtr InitEye(float fov, float offset, uint32_t size); | 40 mojom::VREyeParametersPtr InitEye(float fov, float offset, uint32_t size); |
40 | 41 |
41 mojom::VRDisplayInfoPtr device_; | 42 mojom::VRDisplayInfoPtr device_; |
42 mojom::VRPosePtr pose_; | 43 mojom::VRPosePtr pose_; |
43 | 44 |
44 DISALLOW_COPY_AND_ASSIGN(FakeVRDevice); | 45 DISALLOW_COPY_AND_ASSIGN(FakeVRDevice); |
45 }; | 46 }; |
46 | 47 |
47 } // namespace device | 48 } // namespace device |
48 | 49 |
49 #endif // DEVICE_VR_TEST_FAKE_VR_DEVICE_H_ | 50 #endif // DEVICE_VR_TEST_FAKE_VR_DEVICE_H_ |
OLD | NEW |