commit | 61b12f24706aeb661de0d1cd1b6e48b2e2e3b194 | [log] [tgz] |
---|---|---|
author | Vladimir Levin <vmpstr@chromium.org> | Thu Dec 20 22:10:45 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Dec 20 22:10:45 2018 |
tree | f170237637882c169634d0f8b257c597eaf2a788 | |
parent | 0a5bc3b8b6b83033df09e24b4c40670e76161c55 [diff] |
[DL]: Make update() not do the paint phase. This patch changes the display locking update() function to not paint. The reason for this is that update cannot release the lock on its own and painted information is not needed for any information that script might want. Note that this updates the budget to actually check if any work is required since we cannot reliably wait for any lifecycle phase. Previously we waited for paint which was always guaranteed to happen. Note that this updates the budget API to have NeedsLifecycleUpdates instead of DidFinishLifecycleUpdates, which now checks the dirty bits for any phases that might need updating. It might be nice to implement co-operative painting that stashes the paint for later use, but at this point it is only doing extra work. R=chrishtr@chromium.org Bug: 882663 Change-Id: Ie426dc75ea036b6f2e16b1b592763267957685ce Reviewed-on: https://chromium-review.googlesource.com/c/1383324 Commit-Queue: vmpstr <vmpstr@chromium.org> Reviewed-by: Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/heads/master@{#618351}
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 .