crosvm/gpu_display/examples
Pujun Lun 509fd7babf gpu_display: add DisplayParameters to create_surface() interface.
"width" and "height" are removed from the interface since they can
be derived from DisplayParameters.

Windows implementation was assuming only one display, so
DisplayParameters was passed in with GpuDisplay::open_winapi() and
assumed not to change. To support multi-display, it needs to be
passed in every time we create a new surface. This should make no
functional change to other platforms.

BUG=b:332910955

Change-Id: I32767a37c8a1f50716190e13aa94c9c159db3d04
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5041413
Reviewed-by: Jason Macnak <natsu@google.com>
Commit-Queue: Pujun Lun <lunpujun@google.com>
Reviewed-by: Kaiyi Li <kaiyili@google.com>
Reviewed-by: Frederick Mayle <fmayle@google.com>
2024-04-04 22:20:57 +00:00
..
simple.rs gpu_display: add DisplayParameters to create_surface() interface. 2024-04-04 22:20:57 +00:00
simple_open.rs gpu_display: add DisplayParameters to create_surface() interface. 2024-04-04 22:20:57 +00:00