Fix unexpected smart pointer static analysis warnings in Source/WebKit/GPUProcess#33311
Merged
webkit-commit-queue merged 1 commit intoWebKit:mainfrom Sep 9, 2024
Merged
Fix unexpected smart pointer static analysis warnings in Source/WebKit/GPUProcess#33311webkit-commit-queue merged 1 commit intoWebKit:mainfrom
webkit-commit-queue merged 1 commit intoWebKit:mainfrom
Conversation
Collaborator
|
EWS run on previous version of this PR (hash 0a2fcc4) Details |
Contributor
|
EWS is unhappy. |
Collaborator
|
EWS run on current version of this PR (hash 923e2f3) Details |
cdumez
approved these changes
Sep 9, 2024
Contributor
There was a problem hiding this comment.
Just wondering why is the call to protectedBacking() needed?
m_backing is already a Ref:
Ref<WebCore::WebGPU::XRBinding> m_backing;
Member
Author
There was a problem hiding this comment.
Because m_backing can be cleared.
Member
Author
There was a problem hiding this comment.
Oh oops, missed these review comments. Will fix.
Contributor
There was a problem hiding this comment.
connection ? connection->sessionID().isAlwaysOnLoggingAllowed() : false could be connection && connection->sessionID().isAlwaysOnLoggingAllowed()
mwyrzykowski
approved these changes
Sep 9, 2024
…t/GPUProcess https://bugs.webkit.org/show_bug.cgi?id=279346 Reviewed by Chris Dumez and Mike Wyrzykowski. Deploy more smart pointers in Source/WebKit/GPUProcess to fix the static analysis warnings. * Source/WebKit/GPUProcess/graphics/WebGPU/RemoteXRBinding.cpp: (WebKit::RemoteXRBinding::RemoteXRBinding): (WebKit::RemoteXRBinding::protectedStreamConnection): (WebKit::RemoteXRBinding::protectedBacking): (WebKit::RemoteXRBinding::protectedGPU): (WebKit::RemoteXRBinding::createProjectionLayer): (WebKit::RemoteXRBinding::getViewSubImage): (WebKit::RemoteXRBinding::stopListeningForIPC): * Source/WebKit/GPUProcess/graphics/WebGPU/RemoteXRBinding.h: * Source/WebKit/GPUProcess/graphics/WebGPU/RemoteXRProjectionLayer.cpp: (WebKit::RemoteXRProjectionLayer::RemoteXRProjectionLayer): (WebKit::RemoteXRProjectionLayer::protectedStreamConnection): (WebKit::RemoteXRProjectionLayer::protectedGPU const): (WebKit::RemoteXRProjectionLayer::connection const): (WebKit::RemoteXRProjectionLayer::stopListeningForIPC): * Source/WebKit/GPUProcess/graphics/WebGPU/RemoteXRProjectionLayer.h: * Source/WebKit/GPUProcess/graphics/WebGPU/RemoteXRSubImage.cpp: (WebKit::RemoteXRSubImage::RemoteXRSubImage): (WebKit::RemoteXRSubImage::protectedStreamConnection): (WebKit::RemoteXRSubImage::stopListeningForIPC): * Source/WebKit/GPUProcess/graphics/WebGPU/RemoteXRSubImage.h: * Source/WebKit/GPUProcess/graphics/WebGPU/RemoteXRView.cpp: (WebKit::RemoteXRView::RemoteXRView): (WebKit::RemoteXRView::protectedStreamConnection): (WebKit::RemoteXRView::stopListeningForIPC): * Source/WebKit/GPUProcess/graphics/WebGPU/RemoteXRView.h: * Source/WebKit/GPUProcess/media/RemoteLegacyCDMFactoryProxy.cpp: (WebKit::RemoteLegacyCDMFactoryProxy::removeSession): (WebKit::RemoteLegacyCDMFactoryProxy::logger const): Canonical link: https://commits.webkit.org/283359@main
923e2f3 to
cd38a1d
Compare
Collaborator
|
Committed 283359@main (cd38a1d): https://commits.webkit.org/283359@main Reviewed commits have been landed. Closing PR #33311 and removing active labels. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cd38a1d
923e2f3