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

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

Issue 2930993002: Fix new build break on Windows with OpenVR. (Closed)
Patch Set: Fix build break on Windows with OpenVR. 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 | « chrome/browser/permissions/permission_manager_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/openvr/openvr_gamepad_data_fetcher.cc
diff --git a/device/vr/openvr/openvr_gamepad_data_fetcher.cc b/device/vr/openvr/openvr_gamepad_data_fetcher.cc
index d165b442fce6de9bf165e1106975e3fffd5bec16..cccdb372909344a39df9e708d42f247d3ecd28fa 100644
--- a/device/vr/openvr/openvr_gamepad_data_fetcher.cc
+++ b/device/vr/openvr/openvr_gamepad_data_fetcher.cc
@@ -195,10 +195,10 @@ void OpenVRGamepadDataFetcher::GetGamepadData(bool devices_changed_hint) {
gfx::DecomposeTransform(&decomposed_transform, transform);
pad.pose.orientation.not_null = true;
- pad.pose.orientation.x = decomposed_transform.quaternion[0];
- pad.pose.orientation.y = decomposed_transform.quaternion[1];
- pad.pose.orientation.z = decomposed_transform.quaternion[2];
- pad.pose.orientation.w = decomposed_transform.quaternion[3];
+ pad.pose.orientation.x = decomposed_transform.quaternion.x();
+ pad.pose.orientation.y = decomposed_transform.quaternion.y();
+ pad.pose.orientation.z = decomposed_transform.quaternion.z();
+ pad.pose.orientation.w = decomposed_transform.quaternion.w();
pad.pose.position.not_null = true;
pad.pose.position.x = decomposed_transform.translate[0];
« no previous file with comments | « chrome/browser/permissions/permission_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698