Bug 1014393 - Use undef-after-def pattern in MediaRecorder and related files. r=bryce

Differential Revision: https://phabricator.services.mozilla.com/D37700

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andreas Pehrson 2019-07-12 13:42:00 +00:00
Родитель a80b26a3f5
Коммит 221a8dfeca
12 изменённых файлов: 22 добавлений и 16 удалений

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

@ -3112,3 +3112,5 @@ void MediaFormatReader::OnFirstDemuxFailed(TrackInfo::TrackType aType,
} // namespace mozilla } // namespace mozilla
#undef NS_DispatchToMainThread #undef NS_DispatchToMainThread
#undef LOGV
#undef LOG

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

@ -170,10 +170,6 @@ class nsMainThreadPtrHolder<
namespace mozilla { namespace mozilla {
#ifdef LOG
# undef LOG
#endif
LazyLogModule gMediaManagerLog("MediaManager"); LazyLogModule gMediaManagerLog("MediaManager");
#define LOG(...) MOZ_LOG(gMediaManagerLog, LogLevel::Debug, (__VA_ARGS__)) #define LOG(...) MOZ_LOG(gMediaManagerLog, LogLevel::Debug, (__VA_ARGS__))
@ -4661,4 +4657,6 @@ void GetUserMediaWindowListener::NotifyChrome() {
})); }));
} }
#undef LOG
} // namespace mozilla } // namespace mozilla

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

@ -40,10 +40,6 @@
#include "nsProxyRelease.h" #include "nsProxyRelease.h"
#include "nsTArray.h" #include "nsTArray.h"
#ifdef LOG
# undef LOG
#endif
mozilla::LazyLogModule gMediaRecorderLog("MediaRecorder"); mozilla::LazyLogModule gMediaRecorderLog("MediaRecorder");
#define LOG(type, msg) MOZ_LOG(gMediaRecorderLog, type, msg) #define LOG(type, msg) MOZ_LOG(gMediaRecorderLog, type, msg)
@ -1639,3 +1635,5 @@ StaticRefPtr<MediaRecorderReporter> MediaRecorderReporter::sUniqueInstance;
} // namespace dom } // namespace dom
} // namespace mozilla } // namespace mozilla
#undef LOG

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

@ -39,10 +39,6 @@
# include "WebMWriter.h" # include "WebMWriter.h"
#endif #endif
#ifdef LOG
# undef LOG
#endif
mozilla::LazyLogModule gMediaEncoderLog("MediaEncoder"); mozilla::LazyLogModule gMediaEncoderLog("MediaEncoder");
#define LOG(type, msg) MOZ_LOG(gMediaEncoderLog, type, msg) #define LOG(type, msg) MOZ_LOG(gMediaEncoderLog, type, msg)
@ -1025,3 +1021,5 @@ void MediaEncoder::SetVideoKeyFrameInterval(int32_t aVideoKeyFrameInterval) {
} }
} // namespace mozilla } // namespace mozilla
#undef LOG

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

@ -10,7 +10,6 @@
#include <opus/opus.h> #include <opus/opus.h>
#undef LOG
#define LOG(args, ...) #define LOG(args, ...)
namespace mozilla { namespace mozilla {
@ -434,3 +433,5 @@ nsresult OpusTrackEncoder::GetEncodedTrack(
} }
} // namespace mozilla } // namespace mozilla
#undef LOG

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

@ -759,3 +759,5 @@ void VideoTrackEncoder::SetKeyFrameInterval(int32_t aKeyFrameInterval) {
} }
} // namespace mozilla } // namespace mozilla
#undef TRACK_LOG

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

@ -570,3 +570,5 @@ nsresult VP8TrackEncoder::GetEncodedTrack(
} }
} // namespace mozilla } // namespace mozilla
#undef VP8LOG

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

@ -1675,4 +1675,6 @@ bool SkeletonState::DecodeHeader(OggPacketPtr aPacket) {
return true; return true;
} }
#undef LOG
} // namespace mozilla } // namespace mozilla

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

@ -1886,5 +1886,5 @@ nsresult OggDemuxer::SeekBisection(TrackInfo::TrackType aType, int64_t aTarget,
} }
#undef OGG_DEBUG #undef OGG_DEBUG
#undef SEEK_DEBUG #undef SEEK_LOG
} // namespace mozilla } // namespace mozilla

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

@ -6,7 +6,6 @@
#include "prtime.h" #include "prtime.h"
#include "GeckoProfiler.h" #include "GeckoProfiler.h"
#undef LOG
#define LOG(args, ...) #define LOG(args, ...)
namespace mozilla { namespace mozilla {
@ -195,3 +194,5 @@ nsresult OggWriter::SetMetadata(
} }
} // namespace mozilla } // namespace mozilla
#undef LOG

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

@ -212,4 +212,6 @@ bool OpusParser::IsValidMapping2ChannelsCount(uint8_t aChannels) {
return val == valInt || valInt * valInt + 2 == aChannels; return val == valInt || valInt * valInt + 2 == aChannels;
} }
#undef OPUS_LOG
} // namespace mozilla } // namespace mozilla

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

@ -1254,6 +1254,6 @@ int64_t WebMTrackDemuxer::GetEvictionOffset(const TimeUnit& aTime) {
return offset; return offset;
} }
} // namespace mozilla
#undef WEBM_DEBUG #undef WEBM_DEBUG
} // namespace mozilla