Refactor editor host resource boundary

This commit is contained in:
2026-04-27 23:18:04 +08:00
parent 87df14f47b
commit 603d003684
28 changed files with 447 additions and 228 deletions

View File

@@ -29,10 +29,21 @@ namespace XCEngine::UI::Editor::App {
class EditorContext;
} // namespace XCEngine::UI::Editor::App
namespace XCEngine::UI::Editor::Host {
class EditorHostResourceService;
} // namespace XCEngine::UI::Editor::Host
namespace XCEngine::UI::Editor::App {
class EditorWindowRuntimeController final {
public:
EditorWindowRuntimeController(
EditorContext& editorContext,
Host::EditorHostResourceService& resourceService,
std::unique_ptr<EditorWindowContentController> contentController,
std::unique_ptr<Rendering::Host::EditorWindowRenderRuntime> renderRuntime);
~EditorWindowRuntimeController();
@@ -97,6 +108,7 @@ private:
void RefreshDisplayedFrameStats();
EditorContext& m_editorContext;
Host::EditorHostResourceService& m_resourceService;
std::unique_ptr<Rendering::Host::EditorWindowRenderRuntime> m_renderRuntime = {};
EditorWindowScreenshotController m_screenshotController = {};
::XCEngine::UI::UITextureHandle m_titleBarLogoIcon = {};