commit | cfe1d9c8f0f922771e19eb5d2566215b6e47371c | [log] [tgz] |
---|---|---|
author | juncai <juncai@chromium.org> | Tue Jun 13 18:39:04 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jun 13 18:39:04 2017 |
tree | fca6721d806b2268d09a146f365b1576bb09da20 | |
parent | f86ddbbc48abb0d8c2ad6ee10a1728ff7e87e00c [diff] |
Add |notify_client_on_reading_change| flag to sensor configuration This is a CL following the discussion from: https://codereview.chromium.org/2896583005/diff/180001/content/renderer/device_sensors/device_motion_event_pump.cc When the sensor client sets its own timer to read the shared memory, and the sensor reporting mode is ON_CHANGE, the sensor client gets unnecessary high frequency SensorClient::SensorReadingChanged() mojo IPC calls. This CL adds a |notify_client_on_reading_change| flag to sensor configuration to fix it. BUG=721427 Review-Url: https://codereview.chromium.org/2927263002 Cr-Commit-Position: refs/heads/master@{#479074}