config: add DrmDevice::make_render_device
This commit is contained in:
parent
c6c87bdaa1
commit
049b86f4e2
9 changed files with 91 additions and 32 deletions
11
src/state.rs
11
src/state.rs
|
|
@ -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>) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue