|
[Sensors] Improvements in shared buffer managing
This patch adds the following improvements:
-Introduces SeqLock synchronization for shared buffer reads and writes.
- Single sensor shared buffer is guaranteed to have same fixed size on every platform. This is important as our layout tests use fixed sized shared buffer on JS side.
- Introduced common data structures for sensor reading and sensor reading buffer that are used in both blink and platform layers.
For the implementation on Android shared buffer operations moved from java to generic C++ code, same code is to be reused for implementations on other platforms.
BUG= 606766
Committed: https://crrev.com/9e8d58c66a5c826d4b517ecb8988508fc877ef39
Cr-Commit-Position: refs/heads/master@{#424403}
Total comments: 7
Total comments: 13
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+270 lines, -234 lines) |
Patch |
|
M |
device/generic_sensor/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
device/generic_sensor/android/java/src/org/chromium/device/sensors/PlatformSensor.java
|
View
|
1
2
|
6 chunks |
+26 lines, -56 lines |
0 comments
|
Download
|
|
M |
device/generic_sensor/android/junit/src/org/chromium/device/sensors/PlatformSensorAndProviderTest.java
|
View
|
1
2
3
|
12 chunks |
+29 lines, -69 lines |
0 comments
|
Download
|
|
M |
device/generic_sensor/fake_platform_sensor.h
|
View
|
1
2
5
6
7
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
device/generic_sensor/fake_platform_sensor.cc
|
View
|
1
2
5
6
7
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
device/generic_sensor/fake_platform_sensor_provider.h
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
device/generic_sensor/fake_platform_sensor_provider.cc
|
View
|
1
2
5
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
device/generic_sensor/platform_sensor.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+12 lines, -3 lines |
0 comments
|
Download
|
|
M |
device/generic_sensor/platform_sensor.cc
|
View
|
1
2
3
5
|
3 chunks |
+18 lines, -1 line |
0 comments
|
Download
|
|
M |
device/generic_sensor/platform_sensor_android.h
|
View
|
1
2
5
|
2 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
device/generic_sensor/platform_sensor_android.cc
|
View
|
1
2
3
5
|
3 chunks |
+19 lines, -15 lines |
0 comments
|
Download
|
|
M |
device/generic_sensor/platform_sensor_provider_android.cc
|
View
|
1
2
5
|
3 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
|
M |
device/generic_sensor/platform_sensor_provider_base.h
|
View
|
1
2
3
4
5
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
device/generic_sensor/platform_sensor_provider_base.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
device/generic_sensor/platform_sensor_provider_unittest.cc
|
View
|
1
2
|
5 chunks |
+5 lines, -29 lines |
0 comments
|
Download
|
|
A + |
device/generic_sensor/public/cpp/BUILD.gn
|
View
|
1
2
3
4
5
6
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
|
A |
device/generic_sensor/public/cpp/sensor_reading.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+62 lines, -0 lines |
0 comments
|
Download
|
|
A |
device/generic_sensor/public/cpp/sensor_reading.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
|
M |
device/generic_sensor/public/interfaces/sensor_provider.mojom
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
device/generic_sensor/sensor_provider_impl.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+2 lines, -9 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js
|
View
|
1
2
|
3 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/sensor/AmbientLightSensorReading.cpp
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/sensor/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/sensor/DEPS
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/sensor/SensorProxy.h
|
View
|
1
2
3
|
4 chunks |
+9 lines, -7 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/modules/sensor/SensorProxy.cpp
|
View
|
1
2
3
|
4 chunks |
+24 lines, -5 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 65 (42 generated)
|