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

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

Issue 2395853003: [Sensors] Improvements in shared buffer managing (Closed)
Patch Set: 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..2d06cd920f37f3bb6b46ead48b7947ebf3666ab3 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().value1;
}
bool AmbientLightSensorReading::isReadingUpdated(
const SensorProxy::Reading& previous) const {
if (!m_sensorProxy)
return false;
- return previous.reading[0] != illuminance();
+ return previous.value1 != illuminance();
}
DEFINE_TRACE(AmbientLightSensorReading) {

Powered by Google App Engine
This is Rietveld 408576698