Simplify FemtoVG and Skia renderer APIs: remove resize()

We can convey the new physical window size from the run-time
through the private renderer API
when a window resize event is dispatched.
This commit is contained in:
Simon Hausmann 2023-07-25 17:49:04 +02:00 committed by Simon Hausmann
parent 68a255b1d2
commit f15bc6147e
13 changed files with 20 additions and 65 deletions

View file

@ -445,12 +445,6 @@ pub mod skia {
drop(Box::from_raw(r as *mut SkiaRenderer))
}
#[no_mangle]
pub unsafe extern "C" fn slint_skia_renderer_resize(r: SkiaRendererOpaque, size: IntSize) {
let r = &*(r as *const SkiaRenderer);
r.resize_event(PhysicalSize { width: size.width, height: size.height }).unwrap();
}
#[no_mangle]
pub unsafe extern "C" fn slint_skia_renderer_render(r: SkiaRendererOpaque) {
let r = &*(r as *const SkiaRenderer);