mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-02 04:22:56 +00:00
Bug 977255 - Backout for build bustage on a CLOSED TREE
This commit is contained in:
parent
5f99db0399
commit
216960b7a3
@ -252,15 +252,19 @@ NS_IMPL_ISUPPORTS1(GrallocReporter, nsIMemoryReporter)
|
||||
|
||||
int64_t GrallocReporter::sAmount = 0;
|
||||
|
||||
void InitGralloc() {
|
||||
NS_ASSERTION(NS_IsMainThread(), "Should be on main thread.");
|
||||
RegisterStrongMemoryReporter(new GrallocReporter());
|
||||
}
|
||||
|
||||
GrallocBufferActor::GrallocBufferActor()
|
||||
: mAllocBytes(0)
|
||||
, mTextureHost(nullptr)
|
||||
{
|
||||
static bool registered;
|
||||
if (!registered) {
|
||||
// We want to be sure that the first call here will always run on
|
||||
// the main thread.
|
||||
NS_ASSERTION(NS_IsMainThread(), "Should be on main thread.");
|
||||
|
||||
RegisterStrongMemoryReporter(new GrallocReporter());
|
||||
registered = true;
|
||||
}
|
||||
}
|
||||
|
||||
GrallocBufferActor::~GrallocBufferActor()
|
||||
|
@ -89,10 +89,6 @@
|
||||
#include "nsIGfxInfo.h"
|
||||
#include "nsIXULRuntime.h"
|
||||
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
void mozilla::layers::InitGralloc();
|
||||
#endif
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::layers;
|
||||
|
||||
@ -422,10 +418,6 @@ gfxPlatform::Init()
|
||||
mozilla::gl::TexturePoolOGL::Init();
|
||||
#endif
|
||||
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
mozilla::layers::InitGralloc();
|
||||
#endif
|
||||
|
||||
// Force registration of the gfx component, thus arranging for
|
||||
// ::Shutdown to be called.
|
||||
nsCOMPtr<nsISupports> forceReg
|
||||
|
Loading…
x
Reference in New Issue
Block a user