1
0
Fork 0
forked from wry/wry

allocator: move buffer allocation traits into workspace crate

This commit is contained in:
kossLAN 2026-05-29 11:45:26 -04:00
parent 663cfb3ca3
commit 11940fb6a5
No known key found for this signature in database
10 changed files with 141 additions and 67 deletions

View file

@ -3,7 +3,7 @@
use {
crate::{
allocator::{
Allocator, AllocatorError, BO_USE_CURSOR, BO_USE_LINEAR, BO_USE_PROTECTED,
Allocator, AllocatorDrm, AllocatorError, BO_USE_CURSOR, BO_USE_LINEAR, BO_USE_PROTECTED,
BO_USE_RENDERING, BO_USE_SCANOUT, BO_USE_WRITE, BufferObject, BufferUsage,
MappedBuffer,
},
@ -323,7 +323,7 @@ impl GbmDevice {
}
impl Allocator for GbmDevice {
fn drm(&self) -> Option<&Drm> {
fn drm(&self) -> Option<&dyn AllocatorDrm> {
Some(&self.drm)
}