Backed out changeset b3924432ba21 (bug 1287362) for xpcshell crashes

--HG--
extra : rebase_source : 8dfa939e7b65558695c805a658a74c4c6b9ee98d
This commit is contained in:
Carsten "Tomcat" Book 2016-07-19 14:07:09 +02:00
parent b813d27712
commit c5603f7fb6
4 changed files with 4 additions and 5 deletions

View File

@ -627,8 +627,6 @@ CompositorBridgeParent::CompositorBridgeParent(CSSToLayoutDeviceScale aScale,
// Always run destructor on the main thread
MOZ_ASSERT(NS_IsMainThread());
SetMessageLoopToPostDestructionTo(MessageLoop::current());
CompositorLRU::Init();
}
void

View File

@ -9,10 +9,10 @@
#include "mozilla/ClearOnShutdown.h"
#include "mozilla/DebugOnly.h"
#include "mozilla/Preferences.h"
#include "mozilla/unused.h"
#include "CompositorBridgeParent.h"
#include "gfxPrefs.h"
namespace mozilla {
namespace layers {
@ -39,7 +39,7 @@ CompositorLRU::GetSingleton()
CompositorLRU::CompositorLRU()
{
mLRUSize = gfxPrefs::LayersCompositorLRUSize();
mLRUSize = Preferences::GetUint("layers.compositor-lru-size", uint32_t(0));
}
CompositorLRU::~CompositorLRU()

View File

@ -417,7 +417,6 @@ private:
DECL_GFX_PREF(Live, "image.single-color-optimization.enabled", ImageSingleColorOptimizationEnabled, bool, true);
DECL_GFX_PREF(Live, "layers.child-process-shutdown", ChildProcessShutdown, bool, true);
DECL_GFX_PREF(Live, "layers.compositor-lru-size", LayersCompositorLRUSize, uint32_t, 0);
DECL_GFX_PREF(Once, "layers.acceleration.disabled", LayersAccelerationDisabledDoNotUseDirectly, bool, false);
DECL_GFX_PREF(Live, "layers.acceleration.draw-fps", LayersDrawFPS, bool, false);
DECL_GFX_PREF(Live, "layers.acceleration.draw-fps.print-histogram", FPSPrintHistogram, bool, false);

View File

@ -310,6 +310,8 @@ nsLayoutStatics::Initialize()
PromiseDebugging::Init();
layers::CompositorLRU::Init();
mozilla::dom::devicestorage::DeviceStorageStatics::Initialize();
mozilla::dom::WebCryptoThreadPool::Initialize();