drivers/graphics: Remove GraphicsAdapter::display_size
It is no longer used.
This commit is contained in:
@@ -52,7 +52,6 @@ pub trait GraphicsAdapter: Sized + Debug {
|
||||
///
|
||||
/// This must be constant for the lifetime of the graphics adapter.
|
||||
fn display_count(&self) -> usize;
|
||||
fn display_size(&self, display_id: usize) -> (u32, u32);
|
||||
|
||||
fn create_dumb_buffer(&mut self, width: u32, height: u32) -> Self::Buffer;
|
||||
fn map_dumb_buffer(&mut self, buffer: &Self::Buffer) -> *mut u8;
|
||||
|
||||
@@ -73,13 +73,6 @@ impl GraphicsAdapter for Device {
|
||||
self.framebuffers.len()
|
||||
}
|
||||
|
||||
fn display_size(&self, display_id: usize) -> (u32, u32) {
|
||||
(
|
||||
self.framebuffers[display_id].width as u32,
|
||||
self.framebuffers[display_id].height as u32,
|
||||
)
|
||||
}
|
||||
|
||||
fn create_dumb_buffer(&mut self, width: u32, height: u32) -> Self::Buffer {
|
||||
DumbFb::new(width as usize, height as usize)
|
||||
}
|
||||
|
||||
@@ -80,13 +80,6 @@ impl GraphicsAdapter for FbAdapter {
|
||||
self.framebuffers.len()
|
||||
}
|
||||
|
||||
fn display_size(&self, display_id: usize) -> (u32, u32) {
|
||||
(
|
||||
self.framebuffers[display_id].width as u32,
|
||||
self.framebuffers[display_id].height as u32,
|
||||
)
|
||||
}
|
||||
|
||||
fn create_dumb_buffer(&mut self, width: u32, height: u32) -> Self::Buffer {
|
||||
GraphicScreen::new(width as usize, height as usize)
|
||||
}
|
||||
|
||||
@@ -339,13 +339,6 @@ impl<'a> GraphicsAdapter for VirtGpuAdapter<'a> {
|
||||
self.displays.len()
|
||||
}
|
||||
|
||||
fn display_size(&self, display_id: usize) -> (u32, u32) {
|
||||
(
|
||||
self.displays[display_id].width,
|
||||
self.displays[display_id].height,
|
||||
)
|
||||
}
|
||||
|
||||
fn create_dumb_buffer(&mut self, width: u32, height: u32) -> Self::Buffer {
|
||||
futures::executor::block_on(async {
|
||||
let bpp = 32;
|
||||
|
||||
Reference in New Issue
Block a user