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

Unified Diff: third_party/WebKit/Source/modules/sensor/AmbientLightSensorReading.cpp

Issue 2395853003: [Sensors] Improvements in shared buffer managing (Closed)
Patch Set: Test compilation fix + comment from Ken Created 4 years, 2 months 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/AmbientLightSensorReading.cpp
diff --git a/third_party/WebKit/Source/modules/sensor/AmbientLightSensorReading.cpp b/third_party/WebKit/Source/modules/sensor/AmbientLightSensorReading.cpp
index 74efa7b19b239be99da4cb6b26fc9e4a58ef8a71..0589ba7ccca829158ca8689a511304f22317e1b2 100644
--- a/third_party/WebKit/Source/modules/sensor/AmbientLightSensorReading.cpp
+++ b/third_party/WebKit/Source/modules/sensor/AmbientLightSensorReading.cpp
@@ -24,14 +24,14 @@ double AmbientLightSensorReading::illuminance() const {
if (!m_sensorProxy)
return 0.0;
- return m_sensorProxy->reading().reading[0];
+ return m_sensorProxy->reading().values[0];
}
bool AmbientLightSensorReading::isReadingUpdated(
const SensorProxy::Reading& previous) const {
if (!m_sensorProxy)
return false;
- return previous.reading[0] != illuminance();
+ return previous.values[0] != illuminance();
}
DEFINE_TRACE(AmbientLightSensorReading) {
« no previous file with comments | « third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js ('k') | third_party/WebKit/Source/modules/sensor/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698