зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1590933 - Add MOZ_LOG support to CrossProcessPaint. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D51036 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
b05d6665cb
Коммит
121c93797e
|
@ -15,6 +15,7 @@
|
|||
#include "mozilla/dom/WindowGlobalActorsBinding.h"
|
||||
#include "mozilla/gfx/DrawEventRecorder.h"
|
||||
#include "mozilla/gfx/InlineTranslator.h"
|
||||
#include "mozilla/Logging.h"
|
||||
#include "mozilla/PresShell.h"
|
||||
|
||||
#include "gfxPlatform.h"
|
||||
|
@ -24,16 +25,13 @@
|
|||
#include "nsIDocShell.h"
|
||||
#include "nsPresContext.h"
|
||||
|
||||
#define ENABLE_PAINT_LOG 0
|
||||
// #define ENABLE_PAINT_LOG 1
|
||||
static mozilla::LazyLogModule gCrossProcessPaintLog("CrossProcessPaint");
|
||||
static mozilla::LazyLogModule gPaintFragmentLog("PaintFragment");
|
||||
|
||||
#if ENABLE_PAINT_LOG
|
||||
# define PF_LOG(...) printf_stderr("PaintFragment: " __VA_ARGS__)
|
||||
# define CPP_LOG(...) printf_stderr("CrossProcessPaint: " __VA_ARGS__)
|
||||
#else
|
||||
# define PF_LOG(...)
|
||||
# define CPP_LOG(...)
|
||||
#endif
|
||||
#define CPP_LOG(msg, ...) \
|
||||
MOZ_LOG(gCrossProcessPaintLog, LogLevel::Debug, (msg, ##__VA_ARGS__))
|
||||
#define PF_LOG(msg, ...) \
|
||||
MOZ_LOG(gPaintFragmentLog, LogLevel::Debug, (msg, ##__VA_ARGS__))
|
||||
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
|
Загрузка…
Ссылка в новой задаче