Access MemoryPressureHandler global instance via a singleton() static member function
[WebKit-https.git] / Source / WebCore / platform / ios / LegacyTileGrid.mm
index 81b998f..09156d2 100644 (file)
 #if PLATFORM(IOS)
 
 #include "CoreGraphicsSPI.h"
-#include "MemoryPressureHandler.h"
-#include "SystemMemory.h"
 #include "LegacyTileGridTile.h"
 #include "LegacyTileLayer.h"
 #include "LegacyTileLayerPool.h"
+#include "MemoryPressureHandler.h"
+#include "QuartzCoreSPI.h"
+#include "SystemMemory.h"
 #include "WAKWindow.h"
-#include <QuartzCore/QuartzCore.h>
-#include <QuartzCore/QuartzCorePrivate.h>
 #include <algorithm>
 #include <functional>
 
@@ -391,7 +390,7 @@ bool LegacyTileGrid::shouldUseMinimalTileCoverage() const
 {
     return m_tileCache->tilingMode() == LegacyTileCache::Minimal
         || !m_tileCache->isSpeculativeTileCreationEnabled()
-        || memoryPressureHandler().isUnderMemoryPressure();
+        || MemoryPressureHandler::singleton().isUnderMemoryPressure();
 }
 
 IntRect LegacyTileGrid::adjustCoverRectForPageBounds(const IntRect& rect) const