Merge branch 'master' into beacon
This commit is contained in:
commit
e060129951
30 changed files with 915 additions and 633 deletions
|
|
@ -357,8 +357,22 @@ impl compositor::Default for Renderer {
|
|||
}
|
||||
|
||||
impl renderer::Headless for Renderer {
|
||||
fn new(default_font: Font, default_text_size: Pixels) -> Self {
|
||||
Self::new(default_font, default_text_size)
|
||||
async fn new(
|
||||
default_font: Font,
|
||||
default_text_size: Pixels,
|
||||
backend: Option<&str>,
|
||||
) -> Option<Self> {
|
||||
if backend.is_some_and(|backend| {
|
||||
!["tiny-skia", "tiny_skia"].contains(&backend)
|
||||
}) {
|
||||
return None;
|
||||
}
|
||||
|
||||
Some(Self::new(default_font, default_text_size))
|
||||
}
|
||||
|
||||
fn name(&self) -> String {
|
||||
"tiny-skia".to_owned()
|
||||
}
|
||||
|
||||
fn screenshot(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue