update rgnrectallocator changes to match pending m-c patch.

This commit is contained in:
Chris Jones 2009-07-14 03:09:23 -05:00
parent 14b0696047
commit 1de39e3ef4
3 changed files with 6 additions and 4 deletions

View File

@ -102,7 +102,7 @@ class RgnRectMemoryAllocator
#elif defined (DEBUG)
struct _ {
_() { mThread = PR_CurrentThread(); }
void* GetThread() { return mThread; }
void* GetThread() { return mThread; }
void* mThread;
} _mOwningThread;
@ -146,7 +146,7 @@ public:
#if defined(DEBUG)
void SetOwningThread(void* aOwningThread) {
_mOwningThread.mThread = aOwningThread;
_mOwningThread.mThread = aOwningThread;
}
#endif
};

View File

@ -71,6 +71,8 @@
#include "nsIPrefBranch.h"
#include "nsIPrefBranch2.h"
#include "nsRegion.h"
gfxPlatform *gPlatform = nsnull;
// These two may point to the same profile
@ -182,6 +184,8 @@ gfxPlatform::Init()
if (!gPlatform)
return NS_ERROR_OUT_OF_MEMORY;
nsRegion::MigrateToCurrentThread();
nsresult rv;
#if defined(XP_MACOSX)

View File

@ -66,8 +66,6 @@ GeckoThread::Init()
// thus we never get crash reports when they fault. This call fixes it.
message_loop()->set_exception_restoration(true);
nsRegion::MigrateToCurrentThread();
NS_LogInit();
mXREEmbed.Start();
}