mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
ohos: Present on vsync signals (#33117)
Rely on callbacks from the vertical synchronization driver, to drive presentation. Future commits will base animation updates and touchless gestures like fling off these vsync events. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
parent
a58d816319
commit
8a0c7487e7
6 changed files with 83 additions and 9 deletions
|
@ -196,7 +196,11 @@ pub extern "C" fn Java_org_servo_servoview_JNIServo_performUpdates<'local>(
|
|||
_class: JClass<'local>,
|
||||
) {
|
||||
debug!("performUpdates");
|
||||
call(&mut env, |s| s.perform_updates());
|
||||
call(&mut env, |s| {
|
||||
s.perform_updates()?;
|
||||
s.present_if_needed();
|
||||
Ok(())
|
||||
});
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue