Skip to content

Commit

Permalink
Bug 1389598 - Part 2: Remove gonk references from media/ r=jesup
Browse files Browse the repository at this point in the history
--HG--
extra : rebase_source : d1af2d0987038e1c0b0b0c971d0d2e4e9f08364a
  • Loading branch information
EricRahm committed Aug 12, 2017
1 parent 79e2533 commit 5051390
Show file tree
Hide file tree
Showing 16 changed files with 10 additions and 224 deletions.
1 change: 0 additions & 1 deletion build/gyp.mozbuild
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ gyp_vars.update({
'arm_neon': 0,
'arm_neon_optional': 1,

'moz_widget_toolkit_gonk': 0,
'moz_webrtc_omx': 0,
'moz_webrtc_mediacodec': 0,

Expand Down
5 changes: 0 additions & 5 deletions media/mtransport/common.build
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ mtransport_lcppsrcs = [
'transportlayerprsock.cpp',
]

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
mtransport_lcppsrcs += [
'gonk_addrs.cpp',
]

mtransport_cppsrcs = [
'/media/mtransport/%s' % s for s in sorted(mtransport_lcppsrcs)
]
Expand Down
170 changes: 0 additions & 170 deletions media/mtransport/gonk_addrs.cpp

This file was deleted.

13 changes: 0 additions & 13 deletions media/mtransport/third_party/nICEr/nicer.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#
{
'variables' : {
'build_with_gonk%': 0,
'have_ethtool_cmd_speed_hi%': 1
},
'targets' : [
Expand Down Expand Up @@ -234,18 +233,6 @@

'sources': [
],
}],
['moz_widget_toolkit_gonk==1', {
'defines' : [
'WEBRTC_GONK',
'NO_REG_RPC',
],
}],
# Gonk has its own nr_stun_get_addrs implementation.
['build_with_gonk==1', {
'defines': [
"USE_PLATFORM_NR_STUN_GET_ADDRS",
]
}],
['have_ethtool_cmd_speed_hi==0', {
'defines': [
Expand Down
12 changes: 1 addition & 11 deletions media/webrtc/signaling/signaling.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,6 @@
'chromium_code': 1,
},

'target_defaults': {
'conditions': [
['moz_widget_toolkit_gonk==1', {
'defines' : [
'WEBRTC_GONK',
],
}],
],
},

'targets': [

#
Expand Down Expand Up @@ -296,7 +286,7 @@
'cflags_mozilla': [
],
}],
['OS=="android" or moz_widget_toolkit_gonk==1', {
['OS=="android"', {
'cflags_mozilla': [
# This warning complains about important MOZ_EXPORT attributes
# on forward declarations for Android API types.
Expand Down
4 changes: 0 additions & 4 deletions media/webrtc/signaling/src/jsep/JsepSessionImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2259,12 +2259,8 @@ JsepSessionImpl::SetupDefaultCodecs()
48000,
2,
960,
#ifdef WEBRTC_GONK
// TODO Move this elsewhere to be adaptive to rate - Bug 1207925
16000 // B2G uses lower capture sampling rate
#else
40000
#endif
));

mSupportedCodecs.values.push_back(new JsepAudioCodecDescription(
Expand Down
4 changes: 0 additions & 4 deletions media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
#include "MediaStreamVideoSink.h"
#include "VideoUtils.h"
#include "VideoStreamTrack.h"
#ifdef WEBRTC_GONK
#include "GrallocImages.h"
#include "mozilla/layers/GrallocTextureClient.h"
#endif

#include "nsError.h"
#include "AudioSegment.h"
Expand Down
2 changes: 1 addition & 1 deletion media/webrtc/trunk/build/common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@
}],

# Flags to use X11 on non-Mac POSIX platforms
['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or moz_widget_toolkit_gonk==1', {
['OS=="win" or OS=="mac" or OS=="ios" or OS=="android"', {
'use_glib%': 0,
'use_x11%': 0,
}, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// TODO(jesup) better adjust per platform ability
// Note: if these are changed (higher), you may need to change the
// KernelDelay values in the unit tests here and in output_mixer.
#if defined(WEBRTC_ANDROID) || defined(WEBRTC_GONK)
#if defined(WEBRTC_ANDROID)
#define RESAMPLER_QUALITY 2
#else
#define RESAMPLER_QUALITY 3
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

namespace webrtc_adm_linux_pulse {

#if defined(__OpenBSD__) || defined(WEBRTC_GONK)
#if defined(__OpenBSD__)
LATE_BINDING_SYMBOL_TABLE_DEFINE_BEGIN(PulseAudioSymbolTable, "libpulse.so")
#else
LATE_BINDING_SYMBOL_TABLE_DEFINE_BEGIN(PulseAudioSymbolTable, "libpulse.so.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "webrtc/modules/include/module.h"
#include "webrtc/modules/video_capture/video_capture_defines.h"

#if defined(ANDROID) && !defined(WEBRTC_GONK)
#if defined(ANDROID)
#include <jni.h>
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include <assert.h>

#if defined(WEBRTC_ANDROID) || defined(WEBRTC_GONK)
#if defined(WEBRTC_ANDROID)
#define OS_LINUX
#endif
#include "base/singleton.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static int GetCPUInfo(CPUFeature feature) {
return 0;
}

#if !defined(WEBRTC_GONK) && !defined(ANDROID)
#if !defined(ANDROID)
#ifdef WEBRTC_ARCH_ARM_V7
uint64_t WebRtc_GetCPUFeaturesARM(void) {
return kCPUFeatureARMv7
Expand All @@ -77,7 +77,7 @@ uint64_t WebRtc_GetCPUFeaturesARM(void) {
| kCPUFeatureVFPv3;
}
#endif // WEBRTC_ARCH_ARM_V7
#endif // !WEBRTC_GONK && !ANDROID
#endif // !ANDROID

#endif

Expand Down
4 changes: 2 additions & 2 deletions media/webrtc/trunk/webrtc/voice_engine/voice_engine_defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ enum { kVoiceEngineMaxModuleVersionSize = 960 };
// Audio processing
const NoiseSuppression::Level kDefaultNsMode = NoiseSuppression::kModerate;
const GainControl::Mode kDefaultAgcMode =
#if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS) || defined(WEBRTC_GONK)
#if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS)
GainControl::kAdaptiveDigital;
#else
GainControl::kAdaptiveAnalog;
#endif
const bool kDefaultAgcState =
#if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS) || defined(WEBRTC_GONK)
#if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS)
false;
#else
true;
Expand Down

0 comments on commit 5051390

Please sign in to comment.