Back out Bug 1071359 for using 8 MB (!?!) of memory per process on b2g. r=me a=me

This commit is contained in:
Kyle Huey 2014-09-29 15:43:04 -07:00
Родитель 2168d239a4
Коммит ca92abc824
2 изменённых файлов: 0 добавлений и 17 удалений

Просмотреть файл

@ -7,9 +7,6 @@
#include "prlog.h"
#include "prenv.h"
#include "webrtc/system_wrappers/interface/trace.h"
#ifdef WEBRTC_GONK
#include "webrtc/system_wrappers/interface/logcat_trace_context.h"
#endif
#include "nscore.h"
#ifdef MOZILLA_INTERNAL_API
@ -56,10 +53,6 @@ public:
};
static WebRtcTraceCallback gWebRtcCallback;
#ifdef WEBRTC_GONK
static webrtc::LogcatTraceContext gWebRtcLogcatCallback;
#endif
#ifdef MOZILLA_INTERNAL_API
void GetWebRtcLogPrefs(uint32_t *aTraceMask, nsACString* aLogFile, nsACString *aAECLogDir, bool *aMultiLog)
@ -122,13 +115,8 @@ void ConfigWebRtcLog(uint32_t trace_mask, nsCString &aLogFile, nsCString &aAECLo
logFile.Append(default_log);
}
#elif defined(ANDROID)
#ifdef WEBRTC_GONK
// Special case: use callback to log through logcat.
logFile.Assign("logcat");
#else
// Special case: use callback to pipe to NSPR logging.
logFile.Assign("nspr");
#endif
// for AEC, force the user to specify a directory
aecLogDir.Assign("/dev/null");
#else
@ -149,10 +137,6 @@ void ConfigWebRtcLog(uint32_t trace_mask, nsCString &aLogFile, nsCString &aAECLo
if (trace_mask != 0) {
if (aLogFile.EqualsLiteral("nspr")) {
webrtc::Trace::SetTraceCallback(&gWebRtcCallback);
#ifdef WEBRTC_GONK
} else if (aLogFile.EqualsLiteral("logcat")) {
webrtc::Trace::SetTraceCallback(&gWebRtcLogcatCallback);
#endif
} else {
webrtc::Trace::SetTraceFile(aLogFile.get(), multi_log);
}

Просмотреть файл

@ -188,7 +188,6 @@
['moz_widget_toolkit_gonk==1', {
'defines' : [
'WEBRTC_GONK',
'WEBRTC_DIRECT_TRACE',
],
}],
['restrict_webrtc_logging==1', {