mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 958596 - Add support for gfx logging on android and b2g. r=Bas
This commit is contained in:
parent
4898c7bc20
commit
59cfc76456
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user