commit | 6b071fe7dc3bd64a2914eadd5c67b483d064a6cb | [log] [tgz] |
---|---|---|
author | mikhail.pozdnyakov <mikhail.pozdnyakov@intel.com> | Mon Dec 19 13:59:39 2016 |
committer | Commit bot <commit-bot@chromium.org> | Mon Dec 19 14:03:38 2016 |
tree | 66e13ecff19525a0bf67db568aac0f614cbfb729 | |
parent | d9217bcdb39187bec28543abcc5ec82761c1e64c [diff] |
[Sensors] Align sensor reading updates and 'onchange' notification with rAF. For all sensors new reading values are read and 'onchange' notfication is send from rAF callbacks, thus avoiding possible Critical Rendering Path interruption. Before this change a timers were used and this could unnecessarily drain CPU and battery. BUG=668052 BUG=606766 Review-Url: https://codereview.chromium.org/2551223003 Cr-Commit-Position: refs/heads/master@{#439467}