| Index: device/generic_sensor/platform_sensor_configuration.h
|
| diff --git a/device/generic_sensor/platform_sensor_configuration.h b/device/generic_sensor/platform_sensor_configuration.h
|
| index 83a2d9bd8f4684924fb64baca09293b7b03a4ed3..6a70e4dda4d11121018eb88082576a40a343b6ce 100644
|
| --- a/device/generic_sensor/platform_sensor_configuration.h
|
| +++ b/device/generic_sensor/platform_sensor_configuration.h
|
| @@ -18,6 +18,11 @@ class DEVICE_SENSOR_EXPORT PlatformSensorConfiguration {
|
|
|
| bool operator==(const PlatformSensorConfiguration& other) const;
|
|
|
| + // Platform dependent implementations can override this operator if different
|
| + // optimal configuration comparison is required. By default, only frequency is
|
| + // used to compare two configurations.
|
| + virtual bool operator>(const PlatformSensorConfiguration& other) const;
|
| +
|
| void set_frequency(double frequency) {
|
| DCHECK(frequency_ <= kMaxAllowedFrequency && frequency_ > 0.0);
|
| frequency_ = frequency;
|
|
|