Add niri-visual-tests

This commit is contained in:
Ivan Molodetskikh
2024-02-06 09:01:26 +04:00
parent d2a4e6a0cb
commit 122afff7d1
12 changed files with 1062 additions and 7 deletions
+21
View File
@@ -0,0 +1,21 @@
use std::time::Duration;
use smithay::backend::renderer::element::RenderElement;
use smithay::backend::renderer::gles::GlesRenderer;
use smithay::utils::{Physical, Size};
pub mod tile;
pub mod window;
pub trait TestCase {
fn resize(&mut self, width: i32, height: i32);
fn are_animations_ongoing(&self) -> bool {
false
}
fn advance_animations(&mut self, _current_time: Duration) {}
fn render(
&mut self,
renderer: &mut GlesRenderer,
size: Size<i32, Physical>,
) -> Vec<Box<dyn RenderElement<GlesRenderer>>>;
}