Chromium Code Reviews| Index: device/generic_sensor/public/interfaces/sensor_provider.mojom |
| diff --git a/device/generic_sensor/public/interfaces/sensor_provider.mojom b/device/generic_sensor/public/interfaces/sensor_provider.mojom |
| index 4caf3483cdf87df3ee8b11c866befd54975b8d80..b7e4d2b9caaa6e6ff6b30255165adefece7a4b28 100644 |
| --- a/device/generic_sensor/public/interfaces/sensor_provider.mojom |
| +++ b/device/generic_sensor/public/interfaces/sensor_provider.mojom |
| @@ -6,16 +6,19 @@ module device.mojom; |
| import "sensor.mojom"; |
| -struct SensorReadBuffer { |
| +struct SensorInitParams { |
| // The shared memory handle used to fetch the sensor reading. |
| handle<shared_buffer> memory; |
| // The offset at which shared buffer must be mapped. |
| - uint64 offset; |
| + uint64 buffer_offset; |
| // The ReportingMode supported by the sensor. |
| ReportingMode mode; |
| + // Default sensor configuration. |
| + SensorConfiguration default_configuration; |
|
timvolodine
2016/09/12 16:37:08
curious how this is described in spec: does the pl
Mikhail
2016/09/12 17:08:10
That is not mentioned explicitly, however IMO it i
timvolodine
2016/09/13 13:17:10
sounds reasonable.. would you mind raising an issu
|
| + |
| // Note: Each sensor's read buffer contains 4 tightly packed 64-bit floating |
| // point fields, its layout is: { double timestamp; double values[3] }. |
| // So it has a fixed size 4*8 = 32 bytes. |
| @@ -29,12 +32,12 @@ interface SensorProvider { |
| // |
| // |sensor_request| the Sensor interface instance to be initialized. |
| // |
| - // |read_buffer| on success will contain the SensorReadBuffer describing the |
| - // sensor reading buffer details, |
| + // |init_params| on success will contain the SensorInitParams describing the |
| + // sensor details, |
| // contains null on failure. |
| // |client_request| on success contains a request to be bound by the client, |
| // contains null on failure. |
| GetSensor(SensorType type, Sensor& sensor_request) => ( |
| - SensorReadBuffer? read_buffer, |
| + SensorInitParams? init_params, |
| SensorClient&? client_request); |
| }; |