DescriptionMac AVFoundation/QTKit: delay DeviceMonitorMac startup to first GetUserMedia.
Currently DeviceMonitorMac is constructed from BrowserMainLoop in the
first compasses of Chrome bringup. DeviceMonitorMac creates either a
QTKitMonitorImpl or a AVFoundationMonitorImpl, that immediately
starts observing the system capture devices. This monitoring is
not needed until the user actively starts operating the devices,
that happens in MediaStreamManager.
This CL adds a method StartMonitoring() to DeviceMonitorMac that is
exercised from MediaStreamManager::StartMonitoring().
The performance regression in bugs 349616 and 348020 affects only
AVFoundation, but both implementations would benefit from a delayed
startup.
Tested locally via using --[enable/disable]-avfoundation, connecting
and disconnecting devices etc.
BUG=288562, 349616, 348020
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256483
Patch Set 1 #
Total comments: 6
Patch Set 2 : rsesek@ comments #
Total comments: 4
Patch Set 3 : Commented method and added base::ThreadChecker to DeviceMonitorMac. #Patch Set 4 : Change included file device_monitor_mac.h with the forward declaration of the class & necessary met… #
Messages
Total messages: 18 (0 generated)
|