[Sensors] Reland: 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
Committed: https://crrev.com/6b071fe7dc3bd64a2914eadd5c67b483d064a6cb
Cr-Commit-Position: refs/heads/master@{#439467}
patch from issue 2551223003 at patchset 140001 (http://crrev.com/2551223003#ps140001)
Committed: https://crrev.com/5f2cde61f6ff4a764b9b1c7d74a24ef6de815835
Cr-Commit-Position: refs/heads/master@{#440208}
Description was changed from
==========
[Sensors] Reland: 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
Committed: https://crrev.com/6b071fe7dc3bd64a2914eadd5c67b483d064a6cb
Cr-Commit-Position: refs/heads/master@{#439467}
patch from issue 2551223003 at patchset 140001
(http://crrev.com/2551223003#ps140001)
==========
to
==========
[Sensors] Reland: 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
Committed: https://crrev.com/6b071fe7dc3bd64a2914eadd5c67b483d064a6cb
Cr-Commit-Position: refs/heads/master@{#439467}
patch from issue 2551223003 at patchset 140001
(http://crrev.com/2551223003#ps140001)
==========
The previous patch was reverted because it broke Linux Leak bot, right?
Did you confirm the new CL fixes it? You can test the leak detector by:
$ ./run-webkit-tests --enable-leak-detection sensor/
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/126601) ios-device-xcode-clang on ...
On 2016/12/21 11:44:45, haraken wrote:
> The previous patch was reverted because it broke Linux Leak bot, right?
>
Yeah, shifting from timers to rAF caused some flakiness at 'frequency hint'
tests.
https://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=se...
It is fixed now since the tests reference to the actual elapsed sensor updates
count instead of hardcoded values.
Mikhail
The CQ bit was checked by mikhail.pozdnyakov@intel.com to run a CQ dry run
Description was changed from
==========
[Sensors] Reland: 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
Committed: https://crrev.com/6b071fe7dc3bd64a2914eadd5c67b483d064a6cb
Cr-Commit-Position: refs/heads/master@{#439467}
patch from issue 2551223003 at patchset 140001
(http://crrev.com/2551223003#ps140001)
==========
to
==========
[Sensors] Reland: 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
Committed: https://crrev.com/6b071fe7dc3bd64a2914eadd5c67b483d064a6cb
Cr-Commit-Position: refs/heads/master@{#439467}
patch from issue 2551223003 at patchset 140001
(http://crrev.com/2551223003#ps140001)
Review-Url: https://codereview.chromium.org/2589283003
==========
Description was changed from
==========
[Sensors] Reland: 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
Committed: https://crrev.com/6b071fe7dc3bd64a2914eadd5c67b483d064a6cb
Cr-Commit-Position: refs/heads/master@{#439467}
patch from issue 2551223003 at patchset 140001
(http://crrev.com/2551223003#ps140001)
Review-Url: https://codereview.chromium.org/2589283003
==========
to
==========
[Sensors] Reland: 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
Committed: https://crrev.com/6b071fe7dc3bd64a2914eadd5c67b483d064a6cb
Cr-Commit-Position: refs/heads/master@{#439467}
patch from issue 2551223003 at patchset 140001
(http://crrev.com/2551223003#ps140001)
Committed: https://crrev.com/5f2cde61f6ff4a764b9b1c7d74a24ef6de815835
Cr-Commit-Position: refs/heads/master@{#440208}
==========
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/5f2cde61f6ff4a764b9b1c7d74a24ef6de815835 Cr-Commit-Position: refs/heads/master@{#440208}
Issue 2589283003: [Sensors] Reland: Align sensor reading updates and 'onchange' notification with rAF.
(Closed)
Created 4 years ago by Mikhail
Modified 4 years ago
Reviewers: shalamov, haraken, Reilly Grant (use Gerrit)
Base URL:
Comments: 2