Add orientation Euler angles sensor type and implement it on Windows

Desktop / Chromium - Jun Cai [chromium.org] - 13 July 2017 21:06 EDT

This is one of the CLs that refactor sensor types at //services/device/generic_sensor

This CL adds two new sensor types: ABSOLUTE_ORIENTATION_EULER_ANGLES RELATIVE_ORIENTATION_EULER_ANGLES to //services/device/generic_sensor so that when device orientation API renderer side needs Euler angles data, the renderer side doesn't need to do the conversion from Quaternion to Euler angles. And on Windows, there is Euler angles sensor type which provides direct support for this data format and this CL uses it to implement the sensors.

Bug: 733707 Change-Id: I37fe9b8614baef106c2482129e3e340dc1fcdf13 Reviewed-on: https://chromium-review.googlesource.com/569058 Commit-Queue: Jun Cai

ca5c7b8 Add orientation Euler angles sensor type and implement it on Windows
services/device/generic_sensor/README.md | 24 ++++++-----
.../platform_sensor_and_provider_unittest_win.cc | 48 +++++++++++++++++++++-
.../generic_sensor/platform_sensor_reader_win.cc | 36 ++++++++++++++--
.../public/cpp/generic_sensor/sensor_reading.h | 22 +++++++++-
services/device/public/interfaces/sensor.mojom | 6 +++
5 files changed, 118 insertions(+), 18 deletions(-)

Upstream: git.chromium.org


  • Share