Refactor editor host resource boundary
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user