commit | b0c7fc3ffb2c9a417f7472315cac6adf85e78b51 | [log] [tgz] |
---|---|---|
author | Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> | Thu Feb 22 18:10:14 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Feb 22 18:10:14 2024 |
tree | 0871dc855e2568f5de382cdd2edd773e03fd996c | |
parent | 018d82c6b26b4cb8dbc9b1544988522b0f6ee66d [diff] |
sensors: Avoid sending too many stashed virtual sensor readings Follow-up to https://crrev.com/c/5272509: StartSensor() should call AddReading() only if the virtual sensor is switching state from inactive to active, otherwise every single call to Sensor.start() ends up triggering this code path. The behavior being fixed was not user-visible because SensorProxyImpl::UpdateSensorReading() in Blink already discards readings with the same timestamp, but it is still a good idea to avoid unnecessary function calls. Change-Id: If5817d5d5012b0900d421cf60abb8da42c3b32d2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5314762 Reviewed-by: Reilly Grant <reillyg@chromium.org> Auto-Submit: Raphael Kubo Da Costa <raphael.kubo.da.costa@intel.com> Commit-Queue: Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/heads/main@{#1264070}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.