The //device/generic_sensor directory needs to be refactored to make sure the platform-specific sensor fallback logic at //device/sensors are also implemented at //device/generic_sensor, so that the renderer side code doesn’t need to implement this sensor fallback logic. In order to do this, the following two steps are needed:
1. ABSOLUTE_ORIENTATION and RELATIVE_ORIENTATION can be refactored to support both Euler angles and Quaternion representation.
2. Sensor Fallbacks Generalization
This will make //device/generic_sensor be ready to be used to replace //device/sensors to implement device orientation event.
Detailed design doc is at:
https://docs.google.com/document/d/1J6_frvCxmhf_oZIjKngFQmerYnsZ-ZRP3HL6Shm4gH8/edit?pli=1
Comment 1 by juncai@chromium.org
, Jun 23 2017