1
0
Fork 0
forked from wry/wry

opengl: implement AsyncShmGfxTexture

This commit is contained in:
Julian Orth 2024-09-07 21:35:21 +02:00
parent f213372b8e
commit 0a0caf3800
5 changed files with 111 additions and 8 deletions

View file

@ -537,8 +537,8 @@ pub trait ShmGfxTexture: GfxTexture {
fn into_texture(self: Rc<Self>) -> Rc<dyn GfxTexture>;
}
#[expect(dead_code)]
pub trait AsyncShmGfxTextureCallback {
#[expect(dead_code)]
fn completed(self: Rc<Self>, res: Result<(), GfxError>);
}
@ -560,7 +560,6 @@ pub trait AsyncShmGfxTexture: GfxTexture {
damage: Region,
) -> Result<Option<PendingShmUpload>, GfxError>;
#[expect(dead_code)]
fn sync_upload(self: Rc<Self>, shm: &[Cell<u8>], damage: Region) -> Result<(), GfxError>;
#[expect(dead_code)]