mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Backed out changeset b3924432ba21 (bug 1287362) for xpcshell crashes
--HG-- extra : rebase_source : 8dfa939e7b65558695c805a658a74c4c6b9ee98d
This commit is contained in:
parent
b813d27712
commit
c5603f7fb6
@ -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
|
||||
|
@ -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()
|
||||
|
@ -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);
|
||||
|
@ -310,6 +310,8 @@ nsLayoutStatics::Initialize()
|
||||
|
||||
PromiseDebugging::Init();
|
||||
|
||||
layers::CompositorLRU::Init();
|
||||
|
||||
mozilla::dom::devicestorage::DeviceStorageStatics::Initialize();
|
||||
|
||||
mozilla::dom::WebCryptoThreadPool::Initialize();
|
||||
|
Loading…
Reference in New Issue
Block a user