зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1206915 - Make paint dumping to a file e10s-friendly. r=mattwoodrow
--HG-- extra : source : 5ba62147fd9fd23faa11bafcefb752f542476c84
This commit is contained in:
Родитель
9c084c0d2e
Коммит
9836d10039
|
@ -112,6 +112,14 @@
|
|||
#include "nsTransitionManager.h"
|
||||
#include "RestyleManager.h"
|
||||
|
||||
// Make sure getpid() works.
|
||||
#ifdef XP_WIN
|
||||
#include <process.h>
|
||||
#define getpid _getpid
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::dom;
|
||||
using namespace mozilla::image;
|
||||
|
@ -3266,6 +3274,10 @@ nsLayoutUtils::PaintFrame(nsRenderingContext* aRenderingContext, nsIFrame* aFram
|
|||
#ifdef MOZ_DUMP_PAINTING
|
||||
if (gfxUtils::sDumpPaintingToFile) {
|
||||
nsCString string("dump-");
|
||||
// Include the process ID in the dump file name, to make sure that in an
|
||||
// e10s setup different processes don't clobber each other's dump files.
|
||||
string.AppendInt(getpid());
|
||||
string.AppendLiteral("-");
|
||||
string.AppendInt(gPaintCount);
|
||||
string.AppendLiteral(".html");
|
||||
gfxUtils::sDumpPaintFile = fopen(string.BeginReading(), "w");
|
||||
|
|
Загрузка…
Ссылка в новой задаче