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

Unified Diff: device/generic_sensor/platform_sensor_android.h

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: device/generic_sensor/platform_sensor_android.h
diff --git a/device/generic_sensor/platform_sensor_android.h b/device/generic_sensor/platform_sensor_android.h
index caebc45709205ea1f6e098922d7a432dbf02a417..93b43781cdf17ec8f8b1980a1c0f2f1676e9f624 100644
--- a/device/generic_sensor/platform_sensor_android.h
+++ b/device/generic_sensor/platform_sensor_android.h
@@ -22,19 +22,23 @@ class PlatformSensorAndroid : public PlatformSensor {
PlatformSensorAndroid(mojom::SensorType type,
mojo::ScopedSharedBufferMapping mapping,
- uint64_t buffer_size,
PlatformSensorProvider* provider,
const base::android::JavaRef<jobject>& java_sensor);
mojom::ReportingMode GetReportingMode() override;
PlatformSensorConfiguration GetDefaultConfiguration() override;
- void NotifyPlatformSensorReadingChanged(
- JNIEnv*,
- const base::android::JavaRef<jobject>& caller);
void NotifyPlatformSensorError(JNIEnv*,
const base::android::JavaRef<jobject>& caller);
+ void UpdatePlatformSensorReading(
+ JNIEnv*,
+ const base::android::JavaRef<jobject>& caller,
+ jdouble timestamp,
+ jdouble value1,
+ jdouble value2,
+ jdouble value3);
+
protected:
~PlatformSensorAndroid() override;
bool StartSensor(const PlatformSensorConfiguration& configuration) override;

Powered by Google App Engine
This is Rietveld 408576698