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

Unified Diff: device/vr/openvr/openvr_device.cc

Issue 2929733002: Fix build break when building with enable_openvr=true on Windows (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/vr/openvr/openvr_device.h ('k') | third_party/openvr/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/openvr/openvr_device.cc
diff --git a/device/vr/openvr/openvr_device.cc b/device/vr/openvr/openvr_device.cc
index 41cb2c5a219f7dbcafa9e61f9b129b147ede5092..57cb475c60bd55a46056b5c8c4d28dbd6af9a1c4 100644
--- a/device/vr/openvr/openvr_device.cc
+++ b/device/vr/openvr/openvr_device.cc
@@ -296,7 +296,7 @@ void OpenVRDevice::OpenVRRenderLoop::UnregisterPollingEventCallback() {
}
void OpenVRDevice::OpenVRRenderLoop::GetVSync(
- const mojom::VRVSyncProvider::GetVSyncCallback& callback) {
+ mojom::VRVSyncProvider::GetVSyncCallback callback) {
static int16_t next_frame = 0;
int16_t frame = next_frame++;
@@ -313,8 +313,8 @@ void OpenVRDevice::OpenVRRenderLoop::GetVSync(
device::mojom::VRPosePtr pose = getPose();
Sleep(11); // TODO (billorr): Use real vsync timing instead of a sleep (this
// sleep just throttles vsyncs so we don't fill message queues).
- callback.Run(std::move(pose), time, frame,
- device::mojom::VRVSyncProvider::Status::SUCCESS);
+ std::move(callback).Run(std::move(pose), time, frame,
+ device::mojom::VRVSyncProvider::Status::SUCCESS);
}
} // namespace device
« no previous file with comments | « device/vr/openvr/openvr_device.h ('k') | third_party/openvr/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698