Decouple editor render runtime factory

This commit is contained in:
2026-04-26 19:21:38 +08:00
parent caa54b7878
commit fa4fcbe95b
15 changed files with 120 additions and 46 deletions

View File

@@ -15,6 +15,10 @@ namespace XCEngine::UI::Editor {
class EditorWindowSystem;
struct UIEditorWindowWorkspaceState;
namespace Rendering::Host {
class EditorWindowRenderRuntimeFactory;
}
} // namespace XCEngine::UI::Editor
namespace XCEngine::UI::Editor::App {
@@ -33,6 +37,7 @@ public:
EditorWindowManager(
EditorContext& editorContext,
EditorWindowSystem& windowSystem,
Rendering::Host::EditorWindowRenderRuntimeFactory& renderRuntimeFactory,
EditorWindowHostRuntimeServices& hostRuntime);
~EditorWindowManager();
@@ -80,6 +85,7 @@ private:
bool requestSkipNextSteadyStateFrame);
EditorContext& m_editorContext;
Rendering::Host::EditorWindowRenderRuntimeFactory& m_renderRuntimeFactory;
EditorWindowHostRuntimeServices& m_hostRuntime;
std::unique_ptr<EditorWindowContentFactory> m_contentFactory = {};
std::unique_ptr<EditorWindowLifecycleCoordinator> m_lifecycleCoordinator = {};