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

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

Issue 2584343002: WIP: working copy-no-compositor path
Patch Set: StatTracker destructor, delete old magic numbers, mojo export Created 3 years, 11 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
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 12 matching lines...) Expand all
23 void SetVRDevice(const mojom::VRDisplayInfoPtr& device); 23 void SetVRDevice(const mojom::VRDisplayInfoPtr& device);
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(int32_t surface_handle,
34 mojom::VRPosePtr pose,
35 const mojom::VRDisplay::SubmitFrameCallback& callback) overri de;
34 void UpdateLayerBounds(mojom::VRLayerBoundsPtr leftBounds, 36 void UpdateLayerBounds(mojom::VRLayerBoundsPtr leftBounds,
35 mojom::VRLayerBoundsPtr rightBounds) override; 37 mojom::VRLayerBoundsPtr rightBounds) override;
38 void GetSurfaceHandle(int32_t width, int32_t height,
39 const mojom::VRDisplay::GetSurfaceHandleCallback& callba ck) override;
36 40
37 private: 41 private:
38 mojom::VREyeParametersPtr InitEye(float fov, float offset, uint32_t size); 42 mojom::VREyeParametersPtr InitEye(float fov, float offset, uint32_t size);
39 43
40 mojom::VRDisplayInfoPtr device_; 44 mojom::VRDisplayInfoPtr device_;
41 mojom::VRPosePtr pose_; 45 mojom::VRPosePtr pose_;
42 46
43 DISALLOW_COPY_AND_ASSIGN(FakeVRDevice); 47 DISALLOW_COPY_AND_ASSIGN(FakeVRDevice);
44 }; 48 };
45 49
46 } // namespace device 50 } // namespace device
47 51
48 #endif // DEVICE_VR_TEST_FAKE_VR_DEVICE_H_ 52 #endif // DEVICE_VR_TEST_FAKE_VR_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698