commit | 84578181124fa6dabd79d44a6ca369b7fce68a19 | [log] [tgz] |
---|---|---|
author | Yuta Kitamura <yutak@chromium.org> | Mon May 07 09:16:15 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Mon May 07 09:16:15 2018 |
tree | 747e8f40f7e695e06baf6529391973a58c15af48 | |
parent | 9787e0f124e4419609b400e17f8fd53759ce1656 [diff] |
scheduler: Merge WebSchedulerImpl into NonMainThreadScheduler. As part of ongoing scheduler architecture refactoring, this patch updates NonMainThreadScheduler so it can be used in place of WebSchedulerImpl. Specifically, this patch does the following: * Let NonMainThreadScheduler inherit from ThreadScheduler (in addition to WebThreadScheduler). * Implement required virtual functions. * Remove WebSchedulerImpl instance from WebThreadImplForWorkerScheduler, and make it work with NonMainThreadScheduler. Now, WebThreadImplForWorkerScheduler works without relying on WebSchedulerImpl. WebSchedulerImpl is still used by RendererWebSchedulerImpl, so the class itself is not removed yet. This patch adds post-constructor initialization to NonMainThreadScheduler in order to initialize a member requiring a virtual function call. The work is done in the Init() function which is now a non-virtual function of the class, and the original virtual Init() function is renamed to InitImpl(), which is called from Init(). Bug: 826203 Change-Id: I7499fb1df197b760e2289414020f7136e3545a46 Reviewed-on: https://chromium-review.googlesource.com/1032452 Commit-Queue: Yuta Kitamura <yutak@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Reviewed-by: Alexander Timin <altimin@chromium.org> Cr-Commit-Position: refs/heads/master@{#556394}
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 .