зеркало из https://github.com/mozilla/gecko-dev.git
b3df452cb8
We had `NS_DispatchMemoryPressure` and `NS_DispatchEventualMemoryPressure` to dispatch a memory-pressure event which took `MemPressure_New` and `MemPressure_Ongoing` to translate into "low-memory" and "low-memory-ongoing" message respectively. With that model, we could end up sending a wrong message if somebody called the API with `MemPressure_Ongoing` without sending `MemPressure_New`. To avoid that, this patch removes `MemPressure_Ongoing` and makes the API decide whether it should dispatch a "new" event or "ongoing" event. Differential Revision: https://phabricator.services.mozilla.com/D119122 |
||
---|---|---|
.. | ||
GfxInfo.cpp | ||
GfxInfo.h | ||
moz.build | ||
nsAppShell.h | ||
nsAppShell.mm | ||
nsLookAndFeel.h | ||
nsLookAndFeel.mm | ||
nsScreenManager.h | ||
nsScreenManager.mm | ||
nsWidgetFactory.mm | ||
nsWindow.h | ||
nsWindow.mm |