Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: device/vr/test/fake_vr_device.h

Issue 2612333002: Allow VRDisplay to specify which frame the layer bounds should be updated at. (Closed)
Patch Set: rebase + address comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « device/vr/android/gvr/gvr_device.cc ('k') | device/vr/test/fake_vr_device.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 11 matching lines...) Expand all
22 22
23 void SetVRDevice(const mojom::VRDisplayInfoPtr& device); 23 void SetVRDevice(const mojom::VRDisplayInfoPtr& device);
24 24
25 mojom::VRDisplayInfoPtr GetVRDevice() override; 25 mojom::VRDisplayInfoPtr GetVRDevice() override;
26 void ResetPose() override; 26 void ResetPose() override;
27 27
28 void RequestPresent(const base::Callback<void(bool)>& callback) override; 28 void RequestPresent(const base::Callback<void(bool)>& callback) override;
29 void SetSecureOrigin(bool secure_origin) override; 29 void SetSecureOrigin(bool secure_origin) override;
30 void ExitPresent() override; 30 void ExitPresent() override;
31 void SubmitFrame(mojom::VRPosePtr pose) override; 31 void SubmitFrame(mojom::VRPosePtr pose) override;
32 void UpdateLayerBounds(mojom::VRLayerBoundsPtr leftBounds, 32 void UpdateLayerBounds(int16_t frame_index,
33 mojom::VRLayerBoundsPtr leftBounds,
33 mojom::VRLayerBoundsPtr rightBounds) override; 34 mojom::VRLayerBoundsPtr rightBounds) override;
34 void GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) override; 35 void GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) override;
35 36
36 private: 37 private:
37 mojom::VREyeParametersPtr InitEye(float fov, float offset, uint32_t size); 38 mojom::VREyeParametersPtr InitEye(float fov, float offset, uint32_t size);
38 39
39 mojom::VRDisplayInfoPtr device_; 40 mojom::VRDisplayInfoPtr device_;
40 41
41 DISALLOW_COPY_AND_ASSIGN(FakeVRDevice); 42 DISALLOW_COPY_AND_ASSIGN(FakeVRDevice);
42 }; 43 };
43 44
44 } // namespace device 45 } // namespace device
45 46
46 #endif // DEVICE_VR_TEST_FAKE_VR_DEVICE_H_ 47 #endif // DEVICE_VR_TEST_FAKE_VR_DEVICE_H_
OLDNEW
« no previous file with comments | « device/vr/android/gvr/gvr_device.cc ('k') | device/vr/test/fake_vr_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698