Bug 1570337 - p1: singletonize sPEMLog. r=jya

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
John Lin 2019-08-31 00:20:04 +00:00
parent 7c5460806b
commit 04a8aad2d9
3 changed files with 4 additions and 4 deletions

View File

@ -12,6 +12,8 @@
namespace mozilla {
LazyLogModule sPEMLog("PlatformEncoderModule");
PEMFactory::PEMFactory() {
#ifdef MOZ_APPLEMEDIA
RefPtr<PlatformEncoderModule> m(new AppleEncoderModule());

View File

@ -23,8 +23,6 @@ namespace mozilla {
class MediaDataEncoder;
struct CreateEncoderParams;
static LazyLogModule sPEMLog("PlatformEncoderModule");
class PlatformEncoderModule {
public:
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(PlatformEncoderModule)

View File

@ -18,6 +18,8 @@
#include "AppleUtils.h"
namespace mozilla {
extern LazyLogModule sPEMLog;
#define VTENC_LOGE(fmt, ...) \
MOZ_LOG(sPEMLog, mozilla::LogLevel::Error, \
("[AppleVTEncoder] %s: " fmt, __func__, ##__VA_ARGS__))
@ -25,8 +27,6 @@
MOZ_LOG(sPEMLog, mozilla::LogLevel::Debug, \
("[AppleVTEncoder] %s: " fmt, __func__, ##__VA_ARGS__))
namespace mozilla {
static CFDictionaryRef BuildEncoderSpec() {
const void* keys[] = {
kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder};