Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2965)

Unified Diff: device/generic_sensor/public/interfaces/sensor_provider.mojom

Issue 2465363004: [Sensors] Consider maximum supported frequency (Closed)
Patch Set: [Sensors] Consider maximum supported frequency Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 06eb7cbbdb34e76da4796e2de3af7ca27b7d3ff8..91837e144e7b7e5d482e9283419253d4e1a92f1d 100644
--- a/device/generic_sensor/public/interfaces/sensor_provider.mojom
+++ b/device/generic_sensor/public/interfaces/sensor_provider.mojom
@@ -19,6 +19,9 @@ struct SensorInitParams {
// Default sensor configuration.
SensorConfiguration default_configuration;
+ // Maximum sampling frequency for the sensor: it considers both |SensorConfiguration::kMaxAllowedFrequency| and actual sensor capabilities.
shalamov 2016/11/03 12:54:05 nit: format to 80 columns?
Mikhail 2016/11/03 13:28:16 Done.
+ double maximum_frequency;
+
// Each sensor's read buffer contains 4 tightly packed 64-bit floating
// point fields (please see sensor_reading.h) and a seqlock, so its size is
// 5 * 8 = 40 bytes.

Powered by Google App Engine
This is Rietveld 408576698