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

Unified Diff: third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js

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/resources/sensor-helpers.js
diff --git a/third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js b/third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js
index f9099600d5c9fe7b12d6b614d82d9cff3ef2d33b..4ae33d137fb57345f92f9f5d787bb4dae5f6b74b 100644
--- a/third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js
+++ b/third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js
@@ -175,8 +175,7 @@ function sensor_mocks(mojo) {
// sensor_provider.mojom
class MockSensorProvider {
constructor() {
- this.reading_size_in_bytes_ =
- sensor_provider.SensorInitParams.kReadBufferSize;
+ this.reading_size_in_bytes_ = 40; // sizeof(device::SharedMemorySeqLockBuffer<device::mojom::blink::SensorReading>).
shalamov 2016/10/06 12:46:09 this.reading_size_in_bytes_ = (Object.keys(new sen
this.shared_buffer_size_in_bytes_ = this.reading_size_in_bytes_ *
sensor.SensorType.LAST;
let rv =

Powered by Google App Engine
This is Rietveld 408576698