| 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 8cebb0ca8dd0aa2f564de6dbda2c3d1e68e7edda..b8fe00057678e7b1d996faa62a1e5bc8c7be111e 100644
|
| --- a/device/generic_sensor/platform_sensor_configuration.h
|
| +++ b/device/generic_sensor/platform_sensor_configuration.h
|
| @@ -17,6 +17,11 @@ class 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;
|
|
|