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

Unified Diff: third_party/WebKit/Source/modules/sensor/SensorProxy.h

Issue 2465363004: [Sensors] Consider maximum supported frequency (Closed)
Patch Set: Comments from Alex 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: third_party/WebKit/Source/modules/sensor/SensorProxy.h
diff --git a/third_party/WebKit/Source/modules/sensor/SensorProxy.h b/third_party/WebKit/Source/modules/sensor/SensorProxy.h
index 05c7c446b6f7d8a58ec576cd661ee3a616593ddb..fbc3a8a4ccc5497652c51b0ba873d085e103c32e 100644
--- a/third_party/WebKit/Source/modules/sensor/SensorProxy.h
+++ b/third_party/WebKit/Source/modules/sensor/SensorProxy.h
@@ -67,6 +67,8 @@ class SensorProxy final : public GarbageCollectedFinalized<SensorProxy>,
const device::mojom::blink::SensorConfiguration* defaultConfig() const;
+ double maximumFrequency() const;
timvolodine 2016/11/03 17:32:56 nit: maybe inline?
Mikhail 2016/11/04 21:17:45 indeed, thanks
+
// Updates internal reading from shared buffer.
void updateInternalReading();
@@ -106,6 +108,7 @@ class SensorProxy final : public GarbageCollectedFinalized<SensorProxy>,
mojo::ScopedSharedBufferMapping m_sharedBuffer;
Reading m_reading;
bool m_suspended;
+ double m_maximumFrequency;
using ReadingBuffer = device::SensorReadingSharedBuffer;
static_assert(
sizeof(ReadingBuffer) ==

Powered by Google App Engine
This is Rietveld 408576698