Skip to content

Adopt more smart pointers in GPUProcess #45640

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rwlbuis
Copy link
Contributor

@rwlbuis rwlbuis commented May 20, 2025

3dbed93

Adopt more smart pointers in GPUProcess
https://bugs.webkit.org/show_bug.cgi?id=293288

Reviewed by NOBODY (OOPS!).

Adopt more smart pointers in GPUProcess.

* Source/WebCore/platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.h:
* Source/WebCore/platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.mm:
(WebCore::LocalSampleBufferDisplayLayer::protectedRootLayer):
* Source/WebKit/GPUProcess/mac/GPUProcessMac.mm:
(WebKit::GPUProcess::updateProcessName):
(WebKit::GPUProcess::openDirectoryCacheInvalidated):
* Source/WebKit/GPUProcess/webrtc/RemoteSampleBufferDisplayLayer.mm:
(WebKit::RemoteSampleBufferDisplayLayer::initialize):
* Source/WebKit/SaferCPPExpectations/ForwardDeclCheckerExpectations:
* Source/WebKit/SaferCPPExpectations/UnretainedCallArgsCheckerExpectations:
* Source/WebKit/Scripts/webkit/messages.py:
(types_that_cannot_be_forward_declared):

3dbed93

Misc iOS, visionOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 win
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ✅ 🧪 wpe-wk2 ⏳ 🧪 win-tests
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🧪 api-wpe
✅ 🧪 webkitpy ✅ 🧪 ios-wk2-wpt ✅ 🧪 mac-wk1 ✅ 🛠 wpe-cairo
❌ 🧪 api-ios ✅ 🧪 mac-wk2 ✅ 🛠 gtk
✅ 🛠 vision ✅ 🧪 mac-AS-debug-wk2 ✅ 🧪 gtk-wk2
✅ 🛠 vision-sim ✅ 🧪 mac-wk2-stress ✅ 🧪 api-gtk
✅ 🧪 vision-wk2 ✅ 🧪 mac-intel-wk2 ✅ 🛠 playstation
✅ 🛠 tv ✅ 🛠 mac-safer-cpp
✅ 🛠 tv-sim
✅ 🛠 watch
✅ 🛠 watch-sim

@rwlbuis rwlbuis self-assigned this May 20, 2025
@rwlbuis rwlbuis added the New Bugs Unclassified bugs are placed in this component until the correct component can be determined. label May 20, 2025
@rwlbuis rwlbuis force-pushed the eng/Adopt-more-smart-pointers-in-GPUProcess branch from 7dd1285 to df20b17 Compare May 20, 2025 13:49
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label May 20, 2025
@rwlbuis rwlbuis removed the merging-blocked Applied to prevent a change from being merged label May 20, 2025
@rwlbuis rwlbuis force-pushed the eng/Adopt-more-smart-pointers-in-GPUProcess branch from df20b17 to 7f502b6 Compare May 20, 2025 14:59
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label May 20, 2025
@rwlbuis rwlbuis removed the merging-blocked Applied to prevent a change from being merged label May 20, 2025
@rwlbuis rwlbuis force-pushed the eng/Adopt-more-smart-pointers-in-GPUProcess branch from 7f502b6 to bbd563b Compare May 20, 2025 15:39
@webkit-ews-buildbot
Copy link
Collaborator

Safer C++ Build #36672 (bbd563b)

⚠️ Found 2 fixed files! Please update expectations in Source/[Project]/SaferCPPExpectations by running the following command and update your pull request:

  • Tools/Scripts/update-safer-cpp-expectations -p WebKit --UnretainedCallArgsChecker GPUProcess/mac/GPUProcessMac.mm GPUProcess/webrtc/RemoteSampleBufferDisplayLayer.mm

@rwlbuis rwlbuis force-pushed the eng/Adopt-more-smart-pointers-in-GPUProcess branch from bbd563b to bc3c43c Compare May 21, 2025 08:53
@webkit-ews-buildbot
Copy link
Collaborator

Safer C++ Build #36812 (bc3c43c)

⚠️ Found 1 fixed file! Please update expectations in Source/[Project]/SaferCPPExpectations by running the following command and update your pull request:

  • Tools/Scripts/update-safer-cpp-expectations -p WebKit --ForwardDeclChecker GPUProcessMessages.h

@rwlbuis rwlbuis force-pushed the eng/Adopt-more-smart-pointers-in-GPUProcess branch from bc3c43c to f35dea5 Compare May 21, 2025 13:33
@rwlbuis rwlbuis requested a review from cdumez May 21, 2025 15:03
https://bugs.webkit.org/show_bug.cgi?id=293288

Reviewed by NOBODY (OOPS!).

Adopt more smart pointers in GPUProcess.

* Source/WebCore/platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.h:
* Source/WebCore/platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.mm:
(WebCore::LocalSampleBufferDisplayLayer::protectedRootLayer):
* Source/WebKit/GPUProcess/mac/GPUProcessMac.mm:
(WebKit::GPUProcess::updateProcessName):
(WebKit::GPUProcess::openDirectoryCacheInvalidated):
* Source/WebKit/GPUProcess/webrtc/RemoteSampleBufferDisplayLayer.mm:
(WebKit::RemoteSampleBufferDisplayLayer::initialize):
* Source/WebKit/SaferCPPExpectations/ForwardDeclCheckerExpectations:
* Source/WebKit/SaferCPPExpectations/UnretainedCallArgsCheckerExpectations:
* Source/WebKit/Scripts/webkit/messages.py:
(types_that_cannot_be_forward_declared):
@rwlbuis rwlbuis force-pushed the eng/Adopt-more-smart-pointers-in-GPUProcess branch from f35dea5 to 3dbed93 Compare June 30, 2025 11:13
@@ -67,7 +67,9 @@
void GPUProcess::updateProcessName()
{
#if !PLATFORM(MACCATALYST)
RetainPtr applicationName = adoptNS([[NSString alloc] initWithFormat:WEB_UI_NSSTRING(@"%@ Graphics and Media", "visible name of the GPU process. The argument is the application name."), m_uiProcessName.createNSString().get()]);
ALLOW_NONLITERAL_FORMAT_BEGIN
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this about?

@@ -504,6 +504,7 @@ def types_that_cannot_be_forward_declared():
'IPC::AsyncReplyID',
'IPC::FontReference',
'IPC::Semaphore',
'IPC::SharedBufferReference',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not understand the changes to this file either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Bugs Unclassified bugs are placed in this component until the correct component can be determined.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants