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

Side by Side Diff: device/vr/android/gvr/gvr_device.h

Issue 2777903008: Removed deprecated WebVR functionality (Closed)
Patch Set: Another test re-baseline Created 3 years, 8 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_delegate.h ('k') | device/vr/android/gvr/gvr_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 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_ANDROID_GVR_DEVICE_H 5 #ifndef DEVICE_VR_ANDROID_GVR_DEVICE_H
6 #define DEVICE_VR_ANDROID_GVR_DEVICE_H 6 #define DEVICE_VR_ANDROID_GVR_DEVICE_H
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "device/vr/vr_device.h" 9 #include "device/vr/vr_device.h"
10 10
11 namespace device { 11 namespace device {
12 12
13 class GvrDeviceProvider; 13 class GvrDeviceProvider;
14 class GvrDelegate; 14 class GvrDelegate;
15 15
16 class DEVICE_VR_EXPORT GvrDevice : public VRDevice { 16 class DEVICE_VR_EXPORT GvrDevice : public VRDevice {
17 public: 17 public:
18 GvrDevice(GvrDeviceProvider* provider); 18 GvrDevice(GvrDeviceProvider* provider);
19 ~GvrDevice() override; 19 ~GvrDevice() override;
20 20
21 // VRDevice 21 // VRDevice
22 void CreateVRDisplayInfo( 22 void CreateVRDisplayInfo(
23 const base::Callback<void(mojom::VRDisplayInfoPtr)>& on_created) override; 23 const base::Callback<void(mojom::VRDisplayInfoPtr)>& on_created) override;
24 void ResetPose() override;
25 24
26 void RequestPresent(mojom::VRSubmitFrameClientPtr submit_client, 25 void RequestPresent(mojom::VRSubmitFrameClientPtr submit_client,
27 const base::Callback<void(bool)>& callback) override; 26 const base::Callback<void(bool)>& callback) override;
28 void SetSecureOrigin(bool secure_origin) override; 27 void SetSecureOrigin(bool secure_origin) override;
29 void ExitPresent() override; 28 void ExitPresent() override;
30 29
31 void SubmitFrame(int16_t frame_index, 30 void SubmitFrame(int16_t frame_index,
32 const gpu::MailboxHolder& mailbox) override; 31 const gpu::MailboxHolder& mailbox) override;
33 void UpdateLayerBounds(int16_t frame_index, 32 void UpdateLayerBounds(int16_t frame_index,
34 mojom::VRLayerBoundsPtr left_bounds, 33 mojom::VRLayerBoundsPtr left_bounds,
35 mojom::VRLayerBoundsPtr right_bounds, 34 mojom::VRLayerBoundsPtr right_bounds,
36 int16_t source_width, 35 int16_t source_width,
37 int16_t source_height) override; 36 int16_t source_height) override;
38 void GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) override; 37 void GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) override;
39 void OnDelegateChanged(); 38 void OnDelegateChanged();
40 39
41 private: 40 private:
42 GvrDelegate* GetGvrDelegate(); 41 GvrDelegate* GetGvrDelegate();
43 42
44 GvrDeviceProvider* gvr_provider_; 43 GvrDeviceProvider* gvr_provider_;
45 bool secure_origin_ = false; 44 bool secure_origin_ = false;
46 45
47 DISALLOW_COPY_AND_ASSIGN(GvrDevice); 46 DISALLOW_COPY_AND_ASSIGN(GvrDevice);
48 }; 47 };
49 48
50 } // namespace device 49 } // namespace device
51 50
52 #endif // DEVICE_VR_ANDROID_GVR_DEVICE_H 51 #endif // DEVICE_VR_ANDROID_GVR_DEVICE_H
OLDNEW
« no previous file with comments | « device/vr/android/gvr/gvr_delegate.h ('k') | device/vr/android/gvr/gvr_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698