зеркало из https://github.com/mozilla/gecko-dev.git
3ceaba23ab
The scope of flattening this hierarchy quickly grows large, so this patch does a couple more things: - Creates a pure interface MediaEngineSourceInterface and a base class MediaEngineSource with common defaults and refcount support (no state!) - Breaks out some of the helper classes to dedicated files, e.g., AllocationHandle, MediaEnginePrefs. - Clarifies the threading model (written on one thread *and* under lock, read under either) - Fixes style, indentation, include-sorting in the affected files - Adds comments, especially for clarifying what responsibilities methods have, and thread usage of class members - Changes Monitors to Mutexes since we only use them as Mutexes anyhow - Makes MediaEngineRemoteVideoSource no longer a shared source since we now support scaling in this source and CamerasChild can act as a broker of frames. This greatly simplifies it. The only shared source is now MediaEngineWebRTCMicrophoneSource, so the sharing specific common methods have been moved to that source. MozReview-Commit-ID: KeVZQo6gLm2 --HG-- rename : dom/media/webrtc/MediaEngine.h => dom/media/webrtc/MediaEnginePrefs.h extra : rebase_source : c785a5feb896312912170475d6b8d997e712e48f |
||
---|---|---|
.. | ||
CaptureTask.cpp | ||
CaptureTask.h | ||
ImageCapture.cpp | ||
ImageCapture.h | ||
moz.build |