crosvm/gpu_display
Kaiyi Li c530a0185c gpu_display: allow creating multiple window structs
We weren't able to create multiple GuiWindow's and MessageOnlyWindow's
because they will try to register the window class with the same name
every time a window is created.

Move the logic to register window class to window_procedure_thread, and
also register different window classes for different message handlers
because they don't share the same WNDPROC.

Test: cargo nextest run --workspace --features all-msvc64_product_debug gpu_display
Test: flat run emulator
Change-Id: Icaf3596731c7bcdedccfa6d9929bee0d0f63cfb5
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4804700
Commit-Queue: Colin Downs-Razouk <colindr@google.com>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2023-10-23 16:37:02 +00:00
..
examples Replace #[cfg(unix)] with #[cfg(any(target_os = "android", target_os = "linux"))] 2023-10-11 00:43:29 +00:00
protocol health-check: Add check for newline at ends of files 2022-08-18 00:17:04 +00:00
src gpu_display: allow creating multiple window structs 2023-10-23 16:37:02 +00:00
build.rs gpu_display: find wayland-scanner with which in build.rs 2023-02-27 21:18:21 +00:00
Cargo.toml gpu_display: allow creating multiple window structs 2023-10-23 16:37:02 +00:00