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

Side by Side Diff: device/vr/vr_display_impl.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/vr_device.h ('k') | device/vr/vr_display_impl.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_VR_DISPLAY_IMPL_H 5 #ifndef DEVICE_VR_VR_DISPLAY_IMPL_H
6 #define DEVICE_VR_VR_DISPLAY_IMPL_H 6 #define DEVICE_VR_VR_DISPLAY_IMPL_H
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 16 matching lines...) Expand all
27 27
28 private: 28 private:
29 friend class VRDisplayImplTest; 29 friend class VRDisplayImplTest;
30 friend class VRServiceImpl; 30 friend class VRServiceImpl;
31 31
32 void ResetPose() override; 32 void ResetPose() override;
33 33
34 void RequestPresent(bool secure_origin, 34 void RequestPresent(bool secure_origin,
35 const RequestPresentCallback& callback) override; 35 const RequestPresentCallback& callback) override;
36 void ExitPresent() override; 36 void ExitPresent() override;
37 void SubmitFrame(mojom::VRPosePtr pose) override; 37 void SubmitFrame(int16_t frame_index,
38 const gpu::MailboxHolder& mailbox,
39 mojom::VRSubmitFrameClientPtr submit_client) override;
38 40
39 void UpdateLayerBounds(int16_t frame_index, 41 void UpdateLayerBounds(int16_t frame_index,
40 mojom::VRLayerBoundsPtr left_bounds, 42 mojom::VRLayerBoundsPtr left_bounds,
41 mojom::VRLayerBoundsPtr right_bounds) override; 43 mojom::VRLayerBoundsPtr right_bounds,
44 int16_t source_width,
45 int16_t source_height) override;
42 void GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) override; 46 void GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) override;
43 47
44 void RequestPresentResult(const RequestPresentCallback& callback, 48 void RequestPresentResult(const RequestPresentCallback& callback,
45 bool secure_origin, 49 bool secure_origin,
46 bool success); 50 bool success);
47 51
48 void OnVRDisplayInfoCreated(mojom::VRDisplayInfoPtr display_info); 52 void OnVRDisplayInfoCreated(mojom::VRDisplayInfoPtr display_info);
49 53
50 mojo::Binding<mojom::VRDisplay> binding_; 54 mojo::Binding<mojom::VRDisplay> binding_;
51 mojom::VRDisplayClientPtr client_; 55 mojom::VRDisplayClientPtr client_;
52 device::VRDevice* device_; 56 device::VRDevice* device_;
53 VRServiceImpl* service_; 57 VRServiceImpl* service_;
54 58
55 base::WeakPtrFactory<VRDisplayImpl> weak_ptr_factory_; 59 base::WeakPtrFactory<VRDisplayImpl> weak_ptr_factory_;
56 }; 60 };
57 61
58 } // namespace device 62 } // namespace device
59 63
60 #endif // DEVICE_VR_VR_DISPLAY_IMPL_H 64 #endif // DEVICE_VR_VR_DISPLAY_IMPL_H
OLDNEW
« no previous file with comments | « device/vr/vr_device.h ('k') | device/vr/vr_display_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698