Skip to content

Commit

Permalink
Try to fix the visionOS build after 287782@main
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=284611
rdar://141417506

Unreviewed build fix. Partially reverted changes from 287782@main that landed unintentionally.

* Source/WebKit/ModelProcess/ModelProcess.cpp:
(WebKit::ModelProcess::initializeModelProcess):
* Source/WebKit/ModelProcess/ModelProcessCreationParameters.h:
* Source/WebKit/ModelProcess/ModelProcessCreationParameters.serialization.in:

Canonical link: https://commits.webkit.org/287785@main
  • Loading branch information
aestes committed Dec 13, 2024
1 parent fb7b82b commit adc7380
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/WebKit/ModelProcess/ModelProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ void ModelProcess::initializeModelProcess(ModelProcessCreationParameters&& param
// Match the QoS of the UIProcess since the model process is doing rendering on its behalf.
WTF::Thread::setCurrentThreadIsUserInteractive(0);

setLegacyPresentingApplicationPID(parameters.parentPID);

#if USE(OS_STATE)
registerWithStateDumper("ModelProcess state"_s);
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ namespace WebKit {

struct ModelProcessCreationParameters {
AuxiliaryProcessCreationParameters auxiliaryProcessParameters;
ProcessID parentPID;
String applicationVisibleName;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ headers: "ModelProcessCreationParameters.h" "AuxiliaryProcessCreationParameters.

[RValue] struct WebKit::ModelProcessCreationParameters {
WebKit::AuxiliaryProcessCreationParameters auxiliaryProcessParameters;
ProcessID parentPID;
String applicationVisibleName;
};

Expand Down

0 comments on commit adc7380

Please sign in to comment.