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 12 matching lines...) Expand all Loading... |
23 void SetVRDevice(const mojom::VRDisplayInfoPtr& device); | 23 void SetVRDevice(const mojom::VRDisplayInfoPtr& device); |
24 | 24 |
25 // VRDevice | 25 // VRDevice |
26 void GetVRDevice( | 26 void GetVRDevice( |
27 const base::Callback<void(mojom::VRDisplayInfoPtr)>& callback) override; | 27 const base::Callback<void(mojom::VRDisplayInfoPtr)>& callback) 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(int16_t frame_index, |
| 34 const gpu::MailboxHolder& mailbox, |
| 35 mojom::VRSubmitFrameClientPtr submit_client) override; |
34 void UpdateLayerBounds(int16_t frame_index, | 36 void UpdateLayerBounds(int16_t frame_index, |
35 mojom::VRLayerBoundsPtr leftBounds, | 37 mojom::VRLayerBoundsPtr leftBounds, |
36 mojom::VRLayerBoundsPtr rightBounds) override; | 38 mojom::VRLayerBoundsPtr rightBounds, |
| 39 int16_t source_width, |
| 40 int16_t source_height) override; |
37 void GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) override; | 41 void GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) override; |
38 | 42 |
39 private: | 43 private: |
40 mojom::VREyeParametersPtr InitEye(float fov, float offset, uint32_t size); | 44 mojom::VREyeParametersPtr InitEye(float fov, float offset, uint32_t size); |
41 | 45 |
42 mojom::VRDisplayInfoPtr device_; | 46 mojom::VRDisplayInfoPtr device_; |
43 | 47 |
44 DISALLOW_COPY_AND_ASSIGN(FakeVRDevice); | 48 DISALLOW_COPY_AND_ASSIGN(FakeVRDevice); |
45 }; | 49 }; |
46 | 50 |
47 } // namespace device | 51 } // namespace device |
48 | 52 |
49 #endif // DEVICE_VR_TEST_FAKE_VR_DEVICE_H_ | 53 #endif // DEVICE_VR_TEST_FAKE_VR_DEVICE_H_ |
OLD | NEW |