summaryrefslogtreecommitdiff
path: root/dom/media/webrtc
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-04-26 12:56:46 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-26 12:56:46 +0200
commit98fe8b0ccbea37c2681ad8c788baa91554871f4d (patch)
tree0e269a27661fea619ab07a533e0c1fa195c3c671 /dom/media/webrtc
parente08a4ad1c8096fc8de64fac4f36cf0c569cb4420 (diff)
parent519030e688dd7075a7cd9f14dd6fb9e210b5a689 (diff)
downloaduxp-RELBASE_20200426.tar.gz
Merge branch 'redwood' into 28.9-platformRELBASE_20200426
Diffstat (limited to 'dom/media/webrtc')
-rw-r--r--dom/media/webrtc/MediaEngineRemoteVideoSource.cpp3
-rw-r--r--dom/media/webrtc/MediaEngineTabVideoSource.cpp1
-rw-r--r--dom/media/webrtc/MediaEngineWebRTCAudio.cpp1
-rw-r--r--dom/media/webrtc/MediaTrackConstraints.cpp1
-rw-r--r--dom/media/webrtc/PeerIdentity.h2
-rw-r--r--dom/media/webrtc/moz.build11
6 files changed, 14 insertions, 5 deletions
diff --git a/dom/media/webrtc/MediaEngineRemoteVideoSource.cpp b/dom/media/webrtc/MediaEngineRemoteVideoSource.cpp
index 881d85b4a5..e79d8249c4 100644
--- a/dom/media/webrtc/MediaEngineRemoteVideoSource.cpp
+++ b/dom/media/webrtc/MediaEngineRemoteVideoSource.cpp
@@ -6,6 +6,7 @@
#include "MediaEngineRemoteVideoSource.h"
#include "mozilla/RefPtr.h"
+#include "Layers.h"
#include "VideoUtils.h"
#include "nsIPrefService.h"
#include "MediaTrackConstraints.h"
@@ -15,6 +16,8 @@ extern mozilla::LogModule* GetMediaManagerLog();
#define LOG(msg) MOZ_LOG(GetMediaManagerLog(), mozilla::LogLevel::Debug, msg)
#define LOGFRAME(msg) MOZ_LOG(GetMediaManagerLog(), mozilla::LogLevel::Verbose, msg)
+typedef mozilla::gfx::IntSize IntSize;
+
namespace mozilla {
// These need a definition somewhere because template
diff --git a/dom/media/webrtc/MediaEngineTabVideoSource.cpp b/dom/media/webrtc/MediaEngineTabVideoSource.cpp
index d101bab1e7..1ac24aae52 100644
--- a/dom/media/webrtc/MediaEngineTabVideoSource.cpp
+++ b/dom/media/webrtc/MediaEngineTabVideoSource.cpp
@@ -29,6 +29,7 @@
namespace mozilla {
using namespace mozilla::gfx;
+using namespace mozilla::dom;
NS_IMPL_ISUPPORTS(MediaEngineTabVideoSource, nsIDOMEventListener, nsITimerCallback)
diff --git a/dom/media/webrtc/MediaEngineWebRTCAudio.cpp b/dom/media/webrtc/MediaEngineWebRTCAudio.cpp
index 1e2e13d01a..0eda3aac1b 100644
--- a/dom/media/webrtc/MediaEngineWebRTCAudio.cpp
+++ b/dom/media/webrtc/MediaEngineWebRTCAudio.cpp
@@ -9,6 +9,7 @@
#include "MediaTrackConstraints.h"
#include "mtransport/runnable_utils.h"
#include "nsAutoPtr.h"
+#include "nsContentUtils.h"
// scoped_ptr.h uses FF
#ifdef FF
diff --git a/dom/media/webrtc/MediaTrackConstraints.cpp b/dom/media/webrtc/MediaTrackConstraints.cpp
index 6225b6d49a..42582e3c29 100644
--- a/dom/media/webrtc/MediaTrackConstraints.cpp
+++ b/dom/media/webrtc/MediaTrackConstraints.cpp
@@ -5,6 +5,7 @@
#include "MediaTrackConstraints.h"
#include "mozilla/dom/MediaStreamTrackBinding.h"
+#include "mozilla/Unused.h"
#include <limits>
#include <algorithm>
diff --git a/dom/media/webrtc/PeerIdentity.h b/dom/media/webrtc/PeerIdentity.h
index bdfa1d2b37..1f3413bf61 100644
--- a/dom/media/webrtc/PeerIdentity.h
+++ b/dom/media/webrtc/PeerIdentity.h
@@ -13,6 +13,8 @@
#include "nsStringAPI.h"
#endif
+#include "mozilla/RefCounted.h"
+
template <class T> class nsCOMPtr;
class nsIIDNService;
diff --git a/dom/media/webrtc/moz.build b/dom/media/webrtc/moz.build
index 66def8719c..5b76e17cb9 100644
--- a/dom/media/webrtc/moz.build
+++ b/dom/media/webrtc/moz.build
@@ -31,15 +31,14 @@ if CONFIG['MOZ_WEBRTC']:
UNIFIED_SOURCES += [
'MediaEngineCameraVideoSource.cpp',
'MediaEngineRemoteVideoSource.cpp',
+ ]
+ SOURCES += [
'MediaEngineTabVideoSource.cpp',
+ 'MediaEngineWebRTC.cpp',
'MediaEngineWebRTCAudio.cpp',
'RTCCertificate.cpp',
'RTCIdentityProviderRegistrar.cpp',
]
- # MediaEngineWebRTC.cpp needs to be built separately.
- SOURCES += [
- 'MediaEngineWebRTC.cpp',
- ]
LOCAL_INCLUDES += [
'/dom/base',
'/media/libyuv/include',
@@ -53,8 +52,10 @@ XPIDL_SOURCES += [
]
UNIFIED_SOURCES += [
- 'MediaEngineDefault.cpp',
'MediaTrackConstraints.cpp',
+]
+SOURCES += [
+ 'MediaEngineDefault.cpp',
'PeerIdentity.cpp',
]