summaryrefslogtreecommitdiff
path: root/chromium/device/vr/vr_device_base.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/device/vr/vr_device_base.cc')
-rw-r--r--chromium/device/vr/vr_device_base.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/chromium/device/vr/vr_device_base.cc b/chromium/device/vr/vr_device_base.cc
index 61a6404614c..9d113bb653d 100644
--- a/chromium/device/vr/vr_device_base.cc
+++ b/chromium/device/vr/vr_device_base.cc
@@ -19,6 +19,10 @@ mojom::XRDeviceId VRDeviceBase::GetId() const {
return id_;
}
+mojom::XRDeviceDataPtr VRDeviceBase::GetDeviceData() const {
+ return device_data_.Clone();
+}
+
void VRDeviceBase::PauseTracking() {}
void VRDeviceBase::ResumeTracking() {}
@@ -75,6 +79,15 @@ void VRDeviceBase::OnVisibilityStateChanged(
listener_->OnVisibilityStateChanged(visibility_state);
}
+#if defined(OS_WIN)
+void VRDeviceBase::SetLuid(const LUID& luid) {
+ if (luid.HighPart != 0 || luid.LowPart != 0) {
+ // Only set the LUID if it exists and is nonzero.
+ device_data_.luid = base::make_optional<LUID>(luid);
+ }
+}
+#endif
+
mojo::PendingRemote<mojom::XRRuntime> VRDeviceBase::BindXRRuntime() {
DVLOG(2) << __func__;
return runtime_receiver_.BindNewPipeAndPassRemote();