GMPLog.h (1119B)
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 #ifndef DOM_MEDIA_GMPLOG_H_ 7 #define DOM_MEDIA_GMPLOG_H_ 8 9 #include "content_decryption_module.h" 10 #include "gmp-video-codec.h" 11 #include "mozilla/Logging.h" 12 13 namespace mozilla { 14 15 extern LogModule* GetGMPLog(); 16 extern LogModule* GetGMPLibraryLog(); 17 extern GMPLogLevel GetGMPLibraryLogLevel(); 18 19 #define GMP_LOG_ERROR(msg, ...) \ 20 MOZ_LOG(GetGMPLog(), LogLevel::Error, (msg, ##__VA_ARGS__)) 21 #define GMP_LOG_WARNING(msg, ...) \ 22 MOZ_LOG(GetGMPLog(), LogLevel::Warning, (msg, ##__VA_ARGS__)) 23 #define GMP_LOG_INFO(msg, ...) \ 24 MOZ_LOG(GetGMPLog(), LogLevel::Info, (msg, ##__VA_ARGS__)) 25 #define GMP_LOG_DEBUG(msg, ...) \ 26 MOZ_LOG(GetGMPLog(), LogLevel::Debug, (msg, ##__VA_ARGS__)) 27 #define GMP_LOG_VERBOSE(msg, ...) \ 28 MOZ_LOG(GetGMPLog(), LogLevel::Verbose, (msg, ##__VA_ARGS__)) 29 30 } // namespace mozilla 31 32 #endif // DOM_MEDIA_GMPLOG_H_