Closed Bug 1914837 Opened 2 months ago Closed 2 months ago

Refactor DesktopDeviceInfo

Categories

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

task

Tracking

()

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: pehrsons, Assigned: pehrsons)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

This code is old, and I think it is originally from libwebrtc where it was deleted at some point. We undeleted it and moved it to dom/media/systemservices. It looks a lot like C-code with low-level string handling and manual new/free and raw pointer shuffling.

There is also a lot of code duplication we could get rid of in that screen/window/tab info are largely the same.

This removes a lot of duplicate code with some help from templates.
It also brings the code in DesktopDisplayDevice and DesktopTab into the realm of
C++.

This member is patched on top of libwebrtc. New backends could be added from
under us. It needs to be initialized.

Pushed by pehrsons@gmail.com: https://hg.mozilla.org/integration/autoland/rev/8033ee35e2d0 Simplify DesktopDeviceInfo and friends. r=webrtc-reviewers,ng https://hg.mozilla.org/integration/autoland/rev/fdf5b0a81b0c Always initialize DesktopCapturer::pid. r=webrtc-reviewers,ng
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: