1
0
Fork 0
forked from wry/wry

it: test explicit sync

This commit is contained in:
Julian Orth 2024-04-02 21:03:33 +02:00
parent 6448a14fb1
commit 3b0757ee53
22 changed files with 419 additions and 166 deletions

View file

@ -16,6 +16,13 @@ pub struct TestSinglePixelBufferManager {
}
impl TestSinglePixelBufferManager {
pub fn new(tran: &Rc<TestTransport>) -> Self {
Self {
id: tran.id(),
tran: tran.clone(),
}
}
pub fn create_buffer(&self, color: Color) -> TestResult<Rc<TestBuffer>> {
let obj = Rc::new(TestBuffer {
id: self.tran.id(),