MCPcopy Create free account
hub / github.com/bea4dev/ShojiWM / evaluateCached

Function evaluateCached

tools/decoration-runtime.ts:1761–1908  ·  view source on GitHub ↗
(
  composition: WindowCompositionFunction,
  events: CompositorEventController,
  effectConfig: RuntimeEffectConfig,
  windowId: string,
  snapshot?: WaylandWindowSnapshot,
  forceFullReevaluation = false,
)

Source from the content-addressed store, hash-verified

1759 processConfig,
1760 processActions,
1761 debugConfig,
1762 };
1763 const runtimeUpdates = takeRuntimeResponseUpdates();
1764 if (
1765 !tryWriteNativeSchedulerResponse(
1766 embeddedBridge,
1767 response,
1768 runtimeUpdates,
1769 )
1770 ) {
1771 await writeResponseWithRuntimeUpdates(
1772 embeddedBridge,
1773 response,
1774 runtimeUpdates,
1775 );
1776 }
1777 } else if (request.kind === "windowClosed") {
1778 embeddedBridge.clearCompositionShaderUniformSlots(
1779 request.windowId,
1780 );
1781 shaderUniformSlotIdsByWindow.delete(request.windowId);
1782 clearNativeEffectTarget(
1783 embeddedBridge,
1784 NATIVE_EFFECT_TARGET_WINDOW,
1785 request.windowId,
1786 );
1787 closeWindow(events, request.windowId);
1788 const keyBindingConfig = pendingKeyBindingConfigPayload();
1789 const pointerConfig = pendingPointerConfigPayload();
1790 const inputConfig = pendingInputConfigPayload();
1791 const processConfig = pendingProcessConfigPayload();
1792 const processActions = pendingProcessActionsPayload();
1793 await writeResponse(embeddedBridge, {
1794 requestId: request.requestId,
1795 ok: true,
1796 kind: "windowClosed",
1797 displayConfig: pendingDisplayConfigPayload(),
1798 workspaceConfig: pendingWorkspaceConfigPayload(),
1799 keyBindingConfig,
1800 pointerConfig,
1801 inputConfig,
1802 processConfig,
1803 processActions,
1804 });
1805 } else if (request.kind === "startClose") {
1806 const result = startClose(events, effectConfig, request.windowId);
1807 const keyBindingConfig = pendingKeyBindingConfigPayload();
1808 const pointerConfig = pendingPointerConfigPayload();
1809 const inputConfig = pendingInputConfigPayload();
1810 const processConfig = pendingProcessConfigPayload();
1811 const processActions = pendingProcessActionsPayload();
1812 const response: EvaluateSuccess = {
1813 requestId: request.requestId,
1814 ok: true,
1815 kind: "startClose",
1816 ...result,
1817 effectTargetId: request.windowId,
1818 displayConfig: pendingDisplayConfigPayload(),

Callers 1

mainFunction · 0.85

Calls 15

takeDirtyWindowNodeIdsFunction · 0.90
hasActiveAnimationsFunction · 0.90
debugHotReloadFunction · 0.85
snapshotForDebugFunction · 0.85
createRuntimeCacheEntryFunction · 0.85
debugLabelFunction · 0.85
evaluateWindowEffectsFunction · 0.85
peekNextPollDelayFunction · 0.85
deleteMethod · 0.80
emitFocusMethod · 0.80

Tested by

no test coverage detected