Closed Bug 1826530 Opened 2 years ago Closed 1 years ago

Find a cleaner solution than manually running the CFRunLoop in DesktopCaptureImpl

Categories

(Core :: WebRTC: Audio/Video, task, P3)

Unspecified
macOS
task

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: pehrsons, Assigned: pehrsons)

References

Details

Attachments

(4 files)

This is a followup to bug 1826483 which reinstated a CFRunLoopRunInMode that was removed in bug 1800213.

We should use an nsThread with a MessagePump that uses a CFRunLoop directly instead.

This makes things a bit clearer when adding the mac implementation.

The MessagePump implemented here is a MessagePumpCFRunLoopBase that also handles
xpcom events.

Status: NEW → ASSIGNED
Attachment #9327880 - Attachment description: Bug 1826530 - Break MessagePumpForNonMainUIThreads out to MessagePump_windows.cpp. r?ipc-reviewers → Bug 1826530 - Break platform-dependent MessagePumps out to platform-specific files. r?ipc-reviewers
Pushed by pehrsons@gmail.com: https://hg.mozilla.org/integration/autoland/rev/2534ba3f140f Break platform-dependent MessagePumps out to platform-specific files. r=ipc-reviewers,nika https://hg.mozilla.org/integration/autoland/rev/fe9e6fccc2e6 From the Windows MessagePumpForNonMainUIThreads remove use of NSAutoReleasePool. r=ipc-reviewers,nika https://hg.mozilla.org/integration/autoland/rev/2174d8d45249 Implement MessagePumpForNonMainUIThreads for mac. r=xpcom-reviewers,ipc-reviewers,mstange,nika https://hg.mozilla.org/integration/autoland/rev/027080336f71 Switch the ScreenCapture thread on mac to a MessagePumpForNonMainUIThreads. r=webrtc-reviewers,ng
Flags: needinfo?(apehrson)
Pushed by pehrsons@gmail.com: https://hg.mozilla.org/integration/autoland/rev/8c48a98accbc Break platform-dependent MessagePumps out to platform-specific files. r=ipc-reviewers,nika https://hg.mozilla.org/integration/autoland/rev/6bc8a686c792 From the Windows MessagePumpForNonMainUIThreads remove use of NSAutoReleasePool. r=ipc-reviewers,nika https://hg.mozilla.org/integration/autoland/rev/361fb27c3983 Implement MessagePumpForNonMainUIThreads for mac. r=xpcom-reviewers,ipc-reviewers,mstange,nika https://hg.mozilla.org/integration/autoland/rev/5a6b4d0e8b83 Switch the ScreenCapture thread on mac to a MessagePumpForNonMainUIThreads. r=webrtc-reviewers,ng
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: