mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
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:
parent
f60c857fcf
commit
5114e24db1
6 changed files with 75 additions and 31 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue