Home
last modified time | relevance | path

Searched refs:g_shared_state (Results 1 – 3 of 3) sorted by relevance

/external/chromium_org/base/memory/
Ddiscardable_memory_emulated.cc27 LazyInstance<SharedState>::Leaky g_shared_state = LAZY_INSTANCE_INITIALIZER; variable
36 g_shared_state.Pointer()->manager.Register(this, bytes); in DiscardableMemoryEmulated()
42 g_shared_state.Pointer()->manager.Unregister(this); in ~DiscardableMemoryEmulated()
47 return g_shared_state.Pointer()->manager.ReduceMemoryUsage(); in ReduceMemoryUsage()
53 g_shared_state.Pointer()->manager.ReduceMemoryUsageUntilWithinLimit(bytes); in ReduceMemoryUsageUntilWithinLimit()
58 g_shared_state.Pointer()->manager.PurgeAll(); in PurgeForTesting()
69 if (!g_shared_state.Pointer()->manager.AcquireLock(this, &purged)) in Lock()
79 g_shared_state.Pointer()->manager.ReleaseLock(this); in Unlock()
Ddiscardable_memory_mac.cc32 LazyInstance<SharedState>::Leaky g_shared_state = LAZY_INSTANCE_INITIALIZER; variable
47 g_shared_state.Pointer()->manager.Register(this, bytes); in DiscardableMemoryMac()
55 g_shared_state.Pointer()->manager.Unregister(this); in ~DiscardableMemoryMac()
63 if (!g_shared_state.Pointer()->manager.AcquireLock(this, &purged)) in Lock()
73 g_shared_state.Pointer()->manager.ReleaseLock(this); in Unlock()
Ddiscardable_memory_android.cc42 LazyInstance<SharedState>::Leaky g_shared_state = LAZY_INSTANCE_INITIALIZER; variable
70 SharedState* const shared_state = g_shared_state.Pointer(); in CreateLockedMemoryWithType()
103 g_shared_state.Pointer()->manager.PurgeAll(); in PurgeForTesting()