commit | bfa40879994ac2a1370653c0f1188cb8e775d25a | [log] [tgz] |
---|---|---|
author | Vladimir Levin <vmpstr@chromium.org> | Fri Dec 14 15:49:51 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Dec 14 15:49:51 2018 |
tree | c1be76302c9bc97192ef36b19f7365bfdd68970a | |
parent | 49c7e54876d11cbe15967dab47c5e0f83e4b37c7 [diff] |
[DL]: Implement a budget interface in display locking. This patch does a few things: - Removes the debugging macro code since it's losing its value. - Add a DisplayLockBudget with two implementations: - Unyielding budget that never yields and finishes everything - Strict yielding budget that always yields between every lifecycle phase. - Pulls out the lifecycle state from the context to the budget - Adds tests for the budgets. The step after this would be to implement a yielding budget, which should be a combination of strictly yielding logic with some sort of a deadline. R=chrishtr@chromium.org, mstensho@chromium.org Bug: 907619, 882663 Change-Id: Idc75abd2334ce7b5aa6b48714b5b720d3da81b42 Reviewed-on: https://chromium-review.googlesource.com/c/1372307 Reviewed-by: Chris Harrelson <chrishtr@chromium.org> Commit-Queue: vmpstr <vmpstr@chromium.org> Cr-Commit-Position: refs/heads/master@{#616687}
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.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .