commit | 9deeac4682dc2c2a45fdf483c376c75011a09241 | [log] [tgz] |
---|---|---|
author | Yuta Kitamura <yutak@chromium.org> | Fri Oct 12 07:47:14 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Oct 12 07:47:14 2018 |
tree | ba8b5692eadbc904aae0dcee88cb9f7418253e37 | |
parent | 68084907a40caccccb72dd14c0ad3139b97747f7 [diff] |
Move thread-related functionalities in Platform to Thread. This CL moves the most of implementation for Thread in Platform to Thread, so the Platform would contain less implementation (ideally, Platform should be a pure interface to embedders). Previously the global state of threads was stored in Platform, and this CL moves it to Thread. Now the thread-local storage for Blink threads and the main and compositor thread objects are stored as the global variable in thread.cc. This way, the threads state is completely separated from Platform. Old threading functions in Platform are deprecated now, and they will be migrated to Thread ones later. Due to those changes, some test utilities need to be updated. As the state of threads is not stored in Platform, the tests that need to override their main thread have to do that by themselves. To facilitate this, two new utility classes, ScopedMainThreadOverrider and ScopedSchedulerOverrider, are introduced, and TestingPlatform- SupportWithCustomScheduler is removed in favor of the new utilities. Bug: 826203 Change-Id: Ieb702dc85b7ffd75991055038f1165c2bfd7d058 Reviewed-on: https://chromium-review.googlesource.com/c/1273115 Commit-Queue: Yuta Kitamura <yutak@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/master@{#599133}
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 .