1
0
Fork 0
forked from wry/wry

all: use trait upcasting

This commit is contained in:
Julian Orth 2025-04-03 16:47:24 +02:00
parent f0caafc862
commit 09e5f89174
44 changed files with 90 additions and 269 deletions

View file

@ -138,11 +138,7 @@ impl ExtImageCopyCaptureFrameV1 {
Some(s) => s,
_ => ctx.create_staging_buffer(bridge.staging_size(), STAGING_DOWNLOAD),
};
let res = f(
bridge.clone().into_fb(),
AcquireSync::Unnecessary,
ReleaseSync::None,
);
let res = f(bridge.clone(), AcquireSync::Unnecessary, ReleaseSync::None);
if let Err(e) = res {
log::error!("Could not copy frame to staging texture: {}", ErrorFmt(e));
return Err(FrameFailureReason::Unknown);

View file

@ -291,7 +291,7 @@ impl LatchListener for ExtImageCopyCaptureSessionV1 {
self.force_capture.set(true);
return;
}
frame.copy_node(on, tl.tl_as_node(), data.desired_pixel_size());
frame.copy_node(on, &*tl, data.desired_pixel_size());
}
}