Servoshell: Refactor save_output_image and implement into OHOS (#37237)

Split out `save_output_image_if_necessary` into its own file so the code
can be shared by servoshell on the desktop and ohos.
Additionally, hook it up to the loop in OHOS and have OHOS allow
exiting.

Testing: Manual testing on ohos and desktop.

---------

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
This commit is contained in:
Narfinger 2025-06-11 10:51:44 +02:00 committed by GitHub
parent f60c857fcf
commit 5114e24db1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 75 additions and 31 deletions

View file

@ -15,6 +15,7 @@ mod crash_handler;
pub(crate) mod desktop;
#[cfg(any(target_os = "android", target_env = "ohos"))]
mod egl;
mod output_image;
#[cfg(not(any(target_os = "android", target_env = "ohos")))]
mod panic_hook;
mod parser;