-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
base: main
Are you sure you want to change the base?
Adopt more smart pointers in GPUProcess #45640
Conversation
EWS run on previous version of this PR (hash 7dd1285) |
7dd1285
to
df20b17
Compare
EWS run on previous version of this PR (hash df20b17) |
df20b17
to
7f502b6
Compare
EWS run on previous version of this PR (hash 7f502b6) |
7f502b6
to
bbd563b
Compare
EWS run on previous version of this PR (hash bbd563b) |
Safer C++ Build #36672 (bbd563b)
|
bbd563b
to
bc3c43c
Compare
EWS run on previous version of this PR (hash bc3c43c) |
bc3c43c
to
f35dea5
Compare
EWS run on previous version of this PR (hash f35dea5) |
f35dea5
to
3dbed93
Compare
EWS run on previous version of this PR (hash 3dbed93) |
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this about?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is done to fix the [alpha.webkit.UnretainedCallArgsChecker] warning on this line, I am not too sure though about the NONLITERAL stuff. What do you think we should do for WEB_UI_NSSTRING, which is used a lot, and defers to WebCore::localizedNSString, which seems not a trivial function?
@@ -504,6 +504,7 @@ def types_that_cannot_be_forward_declared(): | |||
'IPC::AsyncReplyID', | |||
'IPC::FontReference', | |||
'IPC::Semaphore', | |||
'IPC::SharedBufferReference', |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was added to fix the [lpha.webkit.ForwardDeclChecker] warnings in GPUProcessMessages.h, see also #45640 (comment). Do you think those warnings are too strict in this case? I'd like together those warnings out of the way, otherwise grepping for GPUProcess in SaferCPPExpectations directory makes it seems there is still work to do for 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:
3dbed93
to
175b212
Compare
EWS run on current version of this PR (hash 175b212) |
Safer C++ Build #42224 (175b212)❌ Found 2 failing files with 5 issues. Please address these issues before landing. See WebKit Guidelines for Safer C++ Programming. |
175b212
175b212