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

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

Issue 2658643003: Refactor GvrDelegate ownership into GvrDelegateProvider and fix more threading violations. (Closed)
Patch Set: 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/vr_device.cc ('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 27 matching lines...) Expand all
38 38
39 void UpdateLayerBounds(int16_t frame_index, 39 void UpdateLayerBounds(int16_t frame_index,
40 mojom::VRLayerBoundsPtr left_bounds, 40 mojom::VRLayerBoundsPtr left_bounds,
41 mojom::VRLayerBoundsPtr right_bounds) override; 41 mojom::VRLayerBoundsPtr right_bounds) override;
42 void GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) override; 42 void GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) override;
43 43
44 void RequestPresentResult(const RequestPresentCallback& callback, 44 void RequestPresentResult(const RequestPresentCallback& callback,
45 bool secure_origin, 45 bool secure_origin,
46 bool success); 46 bool success);
47 47
48 void OnVRDisplayInfoCreated(mojom::VRDisplayInfoPtr display_info);
49
48 mojo::Binding<mojom::VRDisplay> binding_; 50 mojo::Binding<mojom::VRDisplay> binding_;
49 mojom::VRDisplayClientPtr client_; 51 mojom::VRDisplayClientPtr client_;
50 device::VRDevice* device_; 52 device::VRDevice* device_;
51 VRServiceImpl* service_; 53 VRServiceImpl* service_;
52 54
53 base::WeakPtrFactory<VRDisplayImpl> weak_ptr_factory_; 55 base::WeakPtrFactory<VRDisplayImpl> weak_ptr_factory_;
54 }; 56 };
55 57
56 } // namespace device 58 } // namespace device
57 59
58 #endif // DEVICE_VR_VR_DISPLAY_IMPL_H 60 #endif // DEVICE_VR_VR_DISPLAY_IMPL_H
OLDNEW
« no previous file with comments | « device/vr/vr_device.cc ('k') | device/vr/vr_display_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698