1
0
Fork 0
forked from wry/wry

config: add DrmDevice::make_render_device

This commit is contained in:
Julian Orth 2022-11-13 13:41:13 +01:00
parent c6c87bdaa1
commit 049b86f4e2
9 changed files with 91 additions and 32 deletions

View file

@ -209,11 +209,22 @@ pub struct DrmDevData {
pub handler: Cell<Option<SpawnedFuture<()>>>,
pub connectors: CopyHashMap<ConnectorId, Rc<ConnectorData>>,
pub syspath: Option<String>,
pub devnode: Option<String>,
pub vendor: Option<String>,
pub model: Option<String>,
pub pci_id: Option<PciId>,
}
impl DrmDevData {
pub fn make_render_device(&self) {
log::info!(
"Making {} the render device",
self.devnode.as_deref().unwrap_or("unknown"),
);
self.dev.clone().make_render_device();
}
}
struct UpdateTextTexturesVisitor;
impl NodeVisitorBase for UpdateTextTexturesVisitor {
fn visit_container(&mut self, node: &Rc<ContainerNode>) {