[iOS WebKit2] IOSurfacePool should force CA to actually garbage collect surfaces.
[WebKit-https.git] / Source / WebCore / platform / graphics / cg / IOSurfacePool.cpp
index 72d79b3..9e8279e 100644 (file)
@@ -288,6 +288,7 @@ void IOSurfacePool::collectionTimerFired(Timer<IOSurfacePool>&)
     if (!m_inUseSurfaces.size() && markedAllSurfaces)
         m_collectionTimer.stop();
 
+    platformGarbageCollectNow();
     DUMP_POOL_STATISTICS();
 }
 
@@ -306,6 +307,7 @@ void IOSurfacePool::discardAllSurfaces()
     m_inUseSurfaces.clear();
     m_sizesInPruneOrder.clear();
     m_collectionTimer.stop();
+    platformGarbageCollectNow();
 }
 
 void IOSurfacePool::showPoolStatistics()