autocommit 2022-01-08 18:38:24 CET
This commit is contained in:
parent
33549184d4
commit
d061a5c313
38 changed files with 179 additions and 371 deletions
|
|
@ -19,12 +19,12 @@ id!(WlBufferId);
|
|||
|
||||
pub struct WlBuffer {
|
||||
id: WlBufferId,
|
||||
client: Rc<Client>,
|
||||
offset: usize,
|
||||
pub client: Rc<Client>,
|
||||
_offset: usize,
|
||||
pub width: u32,
|
||||
pub height: u32,
|
||||
stride: u32,
|
||||
format: &'static Format,
|
||||
_stride: u32,
|
||||
_format: &'static Format,
|
||||
pub image: Rc<pixman::Image<ClientMemOffset>>,
|
||||
pub(super) surfaces: CopyHashMap<WlSurfaceId, Rc<WlSurface>>,
|
||||
}
|
||||
|
|
@ -54,11 +54,11 @@ impl WlBuffer {
|
|||
Ok(Self {
|
||||
id,
|
||||
client: client.clone(),
|
||||
offset,
|
||||
_offset: offset,
|
||||
width,
|
||||
height,
|
||||
stride,
|
||||
format,
|
||||
_stride: stride,
|
||||
_format: format,
|
||||
image: Rc::new(image),
|
||||
surfaces: Default::default(),
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue