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:
Jonathan Schwender 2024-08-30 21:25:50 +08:00 committed by GitHub
parent a58d816319
commit 8a0c7487e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 83 additions and 9 deletions

10
Cargo.lock generated
View file

@ -4780,6 +4780,15 @@ version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0f2fd4c1b349c53cd06dfa959bb53076453960d793961caafd367e64c3bb5522"
[[package]]
name = "ohos-vsync"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5871e38034a33e8d43c711a40d39e24fd3500f43b61b9269b8586f608a70aec3"
dependencies = [
"ohos-sys",
]
[[package]]
name = "once_cell"
version = "1.19.0"
@ -6207,6 +6216,7 @@ dependencies = [
"net_traits",
"nix",
"ohos-sys",
"ohos-vsync",
"raw-window-handle",
"serde_json",
"servo-media",