-
Notifications
You must be signed in to change notification settings - Fork 1.6k
REGRESSION(296514@main): Triggering assertions in debug iOS tests #47130
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
REGRESSION(296514@main): Triggering assertions in debug iOS tests #47130
Conversation
EWS run on previous version of this PR (hash a5b4c53) |
a5b4c53
to
0d2cf20
Compare
EWS run on previous version of this PR (hash 0d2cf20) |
0d2cf20
to
9ac3062
Compare
EWS run on previous version of this PR (hash 9ac3062) |
9ac3062
to
9761851
Compare
EWS run on previous version of this PR (hash 9761851) |
[hostingUpdateCoordinator addLayerHierarchy:m_layerHostingContext->hostable().get()]; | ||
} | ||
protectedSampleBufferDisplayLayer()->updateBoundsAndPosition(bounds, { }); | ||
[hostingUpdateCoordinator commit]; |
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.
hostingUpdateCoordinator
may be nil. Is it okay? Sending message to nil is acceptable but smelling bad behavior.
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.
That's a good point! I added checks and an error message.
Thanks for reviewing!
9761851
to
4a783bf
Compare
EWS run on current version of this PR (hash 4a783bf) |
@@ -110,12 +110,30 @@ | |||
protectedSampleBufferDisplayLayer()->updateDisplayMode(hideDisplayLayer, hideRootLayer); | |||
} | |||
|
|||
void RemoteSampleBufferDisplayLayer::updateBoundsAndPosition(CGRect bounds, std::optional<WTF::MachSendRight>&& fence) | |||
void RemoteSampleBufferDisplayLayer::updateBoundsAndPosition(CGRect bounds, std::optional<WTF::MachSendRightAnnotated>&& fence) |
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.
@youennf I am going to r+ since the fix is needed for bot to run; you might want to take a look when you have time.
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.
Thanks for reviewing!
https://bugs.webkit.org/show_bug.cgi?id=294916 rdar://154213939 Reviewed by Sihui Liu. After 296514@main, we need to be sending a MachSendRightAnnotated object instead of a MachSendRight when updating bounds and position of a RemoteSampleBufferDisplayLayer. * Source/WebCore/platform/graphics/avfoundation/SampleBufferDisplayLayer.h: * Source/WebCore/platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.h: * Source/WebCore/platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.mm: (WebCore::LocalSampleBufferDisplayLayer::updateBoundsAndPosition): * Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm: (WebCore::MediaPlayerPrivateMediaStreamAVFObjC::setVideoLayerSizeFenced): * Source/WebKit/GPUProcess/GPUConnectionToWebProcess.cpp: (WebKit::GPUConnectionToWebProcess::updateSampleBufferDisplayLayerBoundsAndPosition): * Source/WebKit/GPUProcess/GPUConnectionToWebProcess.h: * Source/WebKit/GPUProcess/GPUConnectionToWebProcess.messages.in: * Source/WebKit/GPUProcess/webrtc/RemoteSampleBufferDisplayLayer.h: * Source/WebKit/GPUProcess/webrtc/RemoteSampleBufferDisplayLayer.mm: (WebKit::RemoteSampleBufferDisplayLayer::updateBoundsAndPosition): * Source/WebKit/GPUProcess/webrtc/RemoteSampleBufferDisplayLayerManager.cpp: (WebKit::RemoteSampleBufferDisplayLayerManager::updateSampleBufferDisplayLayerBoundsAndPosition): * Source/WebKit/GPUProcess/webrtc/RemoteSampleBufferDisplayLayerManager.h: * Source/WebKit/WebProcess/GPU/webrtc/SampleBufferDisplayLayer.cpp: (WebKit::SampleBufferDisplayLayer::updateBoundsAndPosition): * Source/WebKit/WebProcess/GPU/webrtc/SampleBufferDisplayLayer.h: Canonical link: https://commits.webkit.org/296603@main
4a783bf
to
5c3ce74
Compare
Committed 296603@main (5c3ce74): https://commits.webkit.org/296603@main Reviewed commits have been landed. Closing PR #47130 and removing active labels. |
5c3ce74
4a783bf