0
Files
src/ui
Sahir Vellani 430c115913 Maintain a NoDestructor instance of ChildWindowThread
A ChildWindowWin can be initialized on the VizCompositor thread or
GPUMain thread. This results in a DCHECK enforcing that the window only
be initialized the same thread due to the dereferencing of a WeakPtr.

This problem can be solved by eliminating the usage of a WeakPtr
alltogether and instead returning a singleton instance that is
initialized using base::NoDestructor. The ChildWindowThread uses a task
runner so operations on the thread should already be thread safe.


Bug: 399387403
Change-Id: Ic4d940988d763f03344e547091c4e07c185affcc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6334063
Reviewed-by: Rafael Cintron <rafael.cintron@microsoft.com>
Commit-Queue: Rafael Cintron <rafael.cintron@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1434257}
2025-03-18 10:58:19 -07:00
..
2024-10-29 23:42:03 +00:00
2024-10-31 08:39:03 +00:00
2022-12-12 23:00:17 +00:00

This directory contains UI frameworks used to build various user interface features. This directory is not intended to contain UI features (such as a keyboard).