зеркало из https://github.com/mozilla/gecko-dev.git
Bug 958596 - Add support for gfx logging on android and b2g. r=Bas
--HG-- extra : rebase_source : 8d5a1c0dfc4f5f74e8417531b1f9f39c54e85d49
This commit is contained in:
Родитель
2a2b1be83a
Коммит
5742b5c647
|
@ -10,6 +10,7 @@
|
|||
#include <sstream>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "nsDebug.h"
|
||||
#include "Point.h"
|
||||
#include "Matrix.h"
|
||||
|
||||
|
@ -57,13 +58,13 @@ static inline void OutputMessage(const std::string &aString, int aLevel) {
|
|||
if (aLevel >= sGfxLogLevel) {
|
||||
::OutputDebugStringA(aString.c_str());
|
||||
}
|
||||
#elif defined(PR_LOGGING)
|
||||
#elif defined(PR_LOGGING) && !(defined(MOZ_WIDGET_GONK) || defined(MOZ_WIDGET_ANDROID))
|
||||
if (PR_LOG_TEST(GetGFX2DLog(), PRLogLevelForLevel(aLevel))) {
|
||||
PR_LogPrint(aString.c_str());
|
||||
}
|
||||
#else
|
||||
if (aLevel >= sGfxLogLevel) {
|
||||
printf("%s", aString.c_str());
|
||||
printf_stderr("%s", aString.c_str());
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче