commit | 9d44a9b58afbb2dbb822817f0450c5642f7bee08 | [log] [tgz] |
---|---|---|
author | Gabriel Charette <[email protected]> | Mon Apr 29 16:35:56 2019 |
committer | Commit Bot <[email protected]> | Mon Apr 29 16:35:56 2019 |
tree | b4a7d12c9caf671ca13bb875c44851bc8e09a986 | |
parent | 6ea313ef0eaf57bfa0637a57840fe51053ea179d [diff] |
[base] Migrate Android's MessagePumpForUI to DoSomeWork(). The tricky part is the need to yield to java before declaring idle. Previously this was done by only yielding to java if we did any work. With DoSomeWork() however we do not know if we did any work, we only know whether there's more work to come. As such we use a special bit to yield to java once and declare idle if no other work is scheduled in-between now and java invoking us again. Bug: 885371 Change-Id: Id9c8271cc216d06a2db7b9a95636fe87b285eb93 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1485130 Reviewed-by: Alex Clarke <[email protected]> Reviewed-by: Michael Thiessen <[email protected]> Commit-Queue: Gabriel Charette <[email protected]> Auto-Submit: Gabriel Charette <[email protected]> Cr-Commit-Position: refs/heads/master@{#654883}
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 .