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

@@ -23,11 +23,13 @@ EditorWindowManager::EditorWindowManager(
EditorContext& editorContext,
EditorWindowSystem& windowSystem,
Rendering::Host::EditorWindowRenderRuntimeFactory& renderRuntimeFactory,
Host::EditorHostResourceService& resourceService,
EditorWindowHostRuntimeServices& hostRuntime,
EditorWorkspacePanelRuntimeSetFactory workspacePanelFactory,
EditorUtilityWindowPanelFactory utilityPanelFactory)
: m_editorContext(editorContext)
, m_renderRuntimeFactory(renderRuntimeFactory)
, m_resourceService(resourceService)
, m_hostRuntime(hostRuntime) {
m_contentFactory = CreateDefaultEditorWindowContentFactory(
windowSystem,
@@ -79,6 +81,7 @@ EditorHostWindow* EditorWindowManager::CreateWorkspaceWindow(
params.primary,
std::make_unique<EditorWindowRuntimeController>(
m_editorContext,
m_resourceService,
m_contentFactory->CreateWorkspaceContentController(windowState),
m_renderRuntimeFactory.CreateWindowRenderRuntime()));
EditorHostWindow* const window = windowInstance.get();
@@ -107,6 +110,7 @@ EditorHostWindow* EditorWindowManager::CreateUtilityWindow(
params.primary,
std::make_unique<EditorWindowRuntimeController>(
m_editorContext,
m_resourceService,
m_contentFactory->CreateUtilityContentController(descriptor),
m_renderRuntimeFactory.CreateWindowRenderRuntime()));
EditorHostWindow* const window = windowInstance.get();