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

Side by Side Diff: device/vr/vr_device.h

Issue 2738683002: WebVR compositor bypass via BrowserMain context + mailbox (Closed)
Patch Set: Less hacked up version Created 3 years, 9 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/test/fake_vr_device.cc ('k') | device/vr/vr_display_impl.h » ('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_VR_DEVICE_H 5 #ifndef DEVICE_VR_VR_DEVICE_H
6 #define DEVICE_VR_VR_DEVICE_H 6 #define DEVICE_VR_VR_DEVICE_H
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "device/vr/vr_export.h" 10 #include "device/vr/vr_export.h"
(...skipping 12 matching lines...) Expand all
23 23
24 unsigned int id() const { return id_; } 24 unsigned int id() const { return id_; }
25 25
26 virtual void GetVRDevice( 26 virtual void GetVRDevice(
27 const base::Callback<void(mojom::VRDisplayInfoPtr)>& callback) = 0; 27 const base::Callback<void(mojom::VRDisplayInfoPtr)>& callback) = 0;
28 virtual void ResetPose() = 0; 28 virtual void ResetPose() = 0;
29 29
30 virtual void RequestPresent(const base::Callback<void(bool)>& callback) = 0; 30 virtual void RequestPresent(const base::Callback<void(bool)>& callback) = 0;
31 virtual void SetSecureOrigin(bool secure_origin) = 0; 31 virtual void SetSecureOrigin(bool secure_origin) = 0;
32 virtual void ExitPresent() = 0; 32 virtual void ExitPresent() = 0;
33 virtual void SubmitFrame(mojom::VRPosePtr pose) = 0; 33 virtual void SubmitFrame(int16_t frame_index,
34 const gpu::MailboxHolder& mailbox,
35 mojom::VRSubmitFrameClientPtr submit_client) = 0;
34 virtual void UpdateLayerBounds(int16_t frame_index, 36 virtual void UpdateLayerBounds(int16_t frame_index,
35 mojom::VRLayerBoundsPtr left_bounds, 37 mojom::VRLayerBoundsPtr left_bounds,
36 mojom::VRLayerBoundsPtr right_bounds) = 0; 38 mojom::VRLayerBoundsPtr right_bounds,
39 int16_t source_width,
40 int16_t source_height) = 0;
37 virtual void GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) = 0; 41 virtual void GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) = 0;
38 42
39 virtual void AddDisplay(VRDisplayImpl* display); 43 virtual void AddDisplay(VRDisplayImpl* display);
40 virtual void RemoveDisplay(VRDisplayImpl* display); 44 virtual void RemoveDisplay(VRDisplayImpl* display);
41 45
42 virtual bool IsAccessAllowed(VRDisplayImpl* display); 46 virtual bool IsAccessAllowed(VRDisplayImpl* display);
43 virtual bool CheckPresentingDisplay(VRDisplayImpl* display); 47 virtual bool CheckPresentingDisplay(VRDisplayImpl* display);
44 48
45 virtual void OnChanged(); 49 virtual void OnChanged();
46 virtual void OnExitPresent(); 50 virtual void OnExitPresent();
(...skipping 20 matching lines...) Expand all
67 static unsigned int next_id_; 71 static unsigned int next_id_;
68 72
69 base::WeakPtrFactory<VRDevice> weak_ptr_factory_; 73 base::WeakPtrFactory<VRDevice> weak_ptr_factory_;
70 74
71 DISALLOW_COPY_AND_ASSIGN(VRDevice); 75 DISALLOW_COPY_AND_ASSIGN(VRDevice);
72 }; 76 };
73 77
74 } // namespace device 78 } // namespace device
75 79
76 #endif // DEVICE_VR_VR_DEVICE_H 80 #endif // DEVICE_VR_VR_DEVICE_H
OLDNEW
« no previous file with comments | « device/vr/test/fake_vr_device.cc ('k') | device/vr/vr_display_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698