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

Unified Diff: third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html

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/LayoutTests/sensor/ambient-light-sensor.html
diff --git a/third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html b/third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html
index 453a5ad136b5ebe85650d966565dbb902e984bf5..30fbad677023864c861dc0f6abc128755e2bec8d 100644
--- a/third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html
+++ b/third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html
@@ -13,8 +13,9 @@ if (!window.testRunner)
const kDefaultReadingValue = 3.1415;
function update_sensor_reading(buffer) {
- buffer[0] = window.performance.now();
- buffer[1] = kDefaultReadingValue;
+ buffer[0] = 0.0; // Placeholder for seqlock.
shalamov 2016/10/06 12:46:09 Maybe better to make resetBuffer() function in sen
Mikhail 2016/10/07 10:07:02 Done.
+ buffer[1] = window.performance.now();
+ buffer[2] = kDefaultReadingValue;
}
test(() => assert_throws(

Powered by Google App Engine
This is Rietveld 408576698