Route live reload policy through platform services

This commit is contained in:
2026-06-03 05:08:00 +02:00
parent ac4d065c78
commit e152616d7f
10 changed files with 66 additions and 18 deletions

View File

@@ -472,8 +472,8 @@ before retained platform clipboard bridges continue.
startup storage path preparation, clipboard text, cursor visibility,
virtual-keyboard visibility, UI-thread lifecycle hooks, render-context
acquire/release/present hooks, render-capture frame hooks, external file
display, file sharing, recording file cleanup, image/file/save-file pickers,
and directory pickers.
display, file sharing, recording file cleanup, live asset/layout reload policy,
image/file/save-file pickers, and directory pickers.
Windows installs an injected `WindowsPlatformServices` implementation from
`src/platform_windows/windows_platform_services.*` in `pp_platform_windows`;
other platforms still route through the debt-tracked legacy fallback adapter
@@ -513,6 +513,9 @@ Recording clear now asks `PlatformServices` whether the platform owns recorded
file deletion and dispatches the cleanup through the service, preserving the
current Apple recorded-frame cleanup while removing Apple-specific file cleanup
guards from `App::rec_clear`.
The UI loop now asks `PlatformServices` whether live shader/layout reloading
should run, preserving the previous Windows/macOS reload behavior while removing
the direct `(_WIN32 || __OSX__)` guard from `App::ui_thread_main`.
`pano_cli plan-cloud-upload` exposes the app-core cloud upload decision used by
the live cloud upload command for missing-canvas, new-document warning, publish
prompt, and dirty-document save-before-upload states before legacy UI, canvas,
@@ -1029,8 +1032,9 @@ Results:
dispatch, external file display dispatch, file sharing dispatch, native
app/window close dispatch, UI-thread lifecycle dispatch, render-context
lifecycle dispatch, render-capture frame hook dispatch, recording cleanup
dispatch, per-frame platform hook dispatch, picker callback dispatch, and
prepared-file save/download callback dispatch. The live Windows app now
dispatch, live asset/layout reload policy dispatch, per-frame platform hook
dispatch, picker callback dispatch, and prepared-file save/download callback
dispatch. The live Windows app now
consumes this interface through an injected
`WindowsPlatformServices` instance isolated in
`src/platform_windows/windows_platform_services.*`; other platforms still