-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
WebKit MediaRecorderPrivate should not be refcounted #18887
WebKit MediaRecorderPrivate should not be refcounted #18887
Conversation
EWS run on current version of this PR (hash feae42e) |
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 guess @JonWBedard hasn't landed the makeUniqueWithoutRefCountedCheck() yet since I don't see it fixed in this patch?
https://bugs.webkit.org/show_bug.cgi?id=262945 rdar://problem/116726041 Reviewed by Alex Christensen and Chris Dumez. Given MediaRecorderPrivate is stored as a std::unique_ptr, it is best to not ref/deref. Instead MediaRecorderPrivate stores a ref counted object that is observing GPUProcess connection closure. * Source/WebKit/WebProcess/GPU/webrtc/MediaRecorderPrivate.cpp: (WebKit::MediaRecorderPrivate::MediaRecorderPrivate): (WebKit::MediaRecorderPrivate::startRecording): (WebKit::MediaRecorderPrivate::gpuProcessConnectionDidClose): * Source/WebKit/WebProcess/GPU/webrtc/MediaRecorderPrivate.h: Canonical link: https://commits.webkit.org/269195@main
feae42e
to
5ac998d
Compare
Committed 269195@main (5ac998d): https://commits.webkit.org/269195@main Reviewed commits have been landed. Closing PR #18887 and removing active labels. |
Hum, I forgot to include the changes that were asked, will do in a follow-up |
β¦95@main https://bugs.webkit.org/show_bug.cgi?id=263011 rdar://116806970 Reviewed by Alex Christensen and Chris Dumez. I did not push all changes related to the review of WebKit#18887 in https://commits.webkit.org/269195@main. Adding them here. * Source/WebKit/WebProcess/GPU/webrtc/MediaRecorderPrivate.cpp: (WebKit::MediaRecorderPrivate::MediaRecorderPrivate): * Source/WebKit/WebProcess/GPU/webrtc/MediaRecorderPrivate.h: Canonical link: https://commits.webkit.org/269207@main
5ac998d
feae42e