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

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

Issue 2465363004: [Sensors] Consider maximum supported frequency (Closed)
Patch Set: Comment from Tim 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
« no previous file with comments | « device/generic_sensor/platform_sensor_win.cc ('k') | device/generic_sensor/sensor_provider_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7b89d3aa062f1fc7803e2ef35ae1010b11b8bc7b 100644
--- a/device/generic_sensor/public/interfaces/sensor_provider.mojom
+++ b/device/generic_sensor/public/interfaces/sensor_provider.mojom
@@ -19,6 +19,11 @@ struct SensorInitParams {
// Default sensor configuration.
SensorConfiguration default_configuration;
+ // Maximum sampling frequency for the sensor: it considers both
+ // |SensorConfiguration::kMaxAllowedFrequency| and actual sensor
+ // capabilities.
+ 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.
« no previous file with comments | « device/generic_sensor/platform_sensor_win.cc ('k') | device/generic_sensor/sensor_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698