Add SensorReadingSharedBufferReader class to read sensor data

Desktop / Chromium - Jun Cai [chromium.org] - 14 July 2017 16:19 EDT

This CL adds a SensorReadingSharedBufferReader class at //services/device/public/cpp/generic_sensor so that it can be used by both //content/renderer/device_sensors and Blink code.

Bug: 727788 Change-Id: I9d03b64e5cf191738e87bbe29fd7611654f3fd5b Reviewed-on: https://chromium-review.googlesource.com/541685

f56f6e2 Add SensorReadingSharedBufferReader class to read sensor data
services/device/public/cpp/generic_sensor/BUILD.gn | 2 +
.../sensor_reading_shared_buffer_reader.cc | 48 ++++++++++++++++++++++
.../sensor_reading_shared_buffer_reader.h | 36 ++++++++++++++++
.../WebKit/Source/modules/sensor/SensorProxy.cpp | 29 ++++---------
.../WebKit/Source/modules/sensor/SensorProxy.h | 5 ++-
5 files changed, 98 insertions(+), 22 deletions(-)

Upstream: git.chromium.org


  • Share