surface: use async uploads for shm buffers
This commit is contained in:
parent
80310f4c0d
commit
d40e605f66
8 changed files with 250 additions and 73 deletions
|
|
@ -551,7 +551,6 @@ pub struct PendingShmUpload {
|
|||
}
|
||||
|
||||
pub trait AsyncShmGfxTexture: GfxTexture {
|
||||
#[expect(dead_code)]
|
||||
fn async_upload(
|
||||
self: Rc<Self>,
|
||||
callback: Rc<dyn AsyncShmGfxTextureCallback>,
|
||||
|
|
@ -561,7 +560,6 @@ pub trait AsyncShmGfxTexture: GfxTexture {
|
|||
|
||||
fn sync_upload(self: Rc<Self>, shm: &[Cell<u8>], damage: Region) -> Result<(), GfxError>;
|
||||
|
||||
#[expect(dead_code)]
|
||||
fn compatible_with(
|
||||
&self,
|
||||
format: &'static Format,
|
||||
|
|
@ -570,7 +568,6 @@ pub trait AsyncShmGfxTexture: GfxTexture {
|
|||
stride: i32,
|
||||
) -> bool;
|
||||
|
||||
#[expect(dead_code)]
|
||||
fn into_texture(self: Rc<Self>) -> Rc<dyn GfxTexture>;
|
||||
}
|
||||
|
||||
|
|
@ -598,7 +595,6 @@ pub trait GfxContext: Debug {
|
|||
damage: Option<&[Rect]>,
|
||||
) -> Result<Rc<dyn ShmGfxTexture>, GfxError>;
|
||||
|
||||
#[expect(dead_code)]
|
||||
fn async_shmem_texture(
|
||||
self: Rc<Self>,
|
||||
format: &'static Format,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue