Delete all draw cache on quit

This commit is contained in:
Yousef Khadadeh 2026-02-04 19:19:29 +03:00
parent fcda17c7d3
commit 4124104fbc
3 changed files with 5 additions and 3 deletions

View file

@ -498,8 +498,10 @@ void DrawingProgramCache::draw_cache_image_to_canvas(SkCanvas* canvas, const Dra
}
}
void DrawingProgramCache::delete_window_cache_surface() {
void DrawingProgramCache::delete_all_draw_cache() {
windowCache.surface = nullptr;
windowCache.attachedDrawingProgramCache = nullptr;
nodeCacheMap.clear();
}
DrawingProgramCache::~DrawingProgramCache() {