mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
6003534ca3
After go/playcl/83699, the WndProc thread is the only thread that accesses this tube, so we could change its type from Arc<Mutex<Tube>> to Rc<Tube>, so that we no longer need to worry about deadlocking. This tube was a field of struct DisplayParameters. That struct is used for CLI arg parsing, however, we don't get this tube from CLI so the code looks awkward. Besides, DisplayParameters specifies params for each individual window, but we will likely only have one tube and share it among multiple windows when we support multi-windowing. So, we can remove it from DisplayParameters, and WindowProcedureThread will distribute the clones of the tube to surfaces. Bug: 257486521 Test: Ran GPG Change-Id: Ic7adeb4a41c89d79e40820ad4d50e8d85c4e385c Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4804685 Reviewed-by: Noah Gold <nkgold@google.com> Commit-Queue: Kaiyi Li <kaiyili@google.com> |
||
---|---|---|
.. | ||
examples | ||
protocol | ||
src | ||
build.rs | ||
Cargo.toml |