Added layer draw cache, and eraser works again

This commit is contained in:
Yousef Khadadeh 2025-12-28 17:34:33 +03:00
parent c2abccefc2
commit 7549ad23a1
29 changed files with 484 additions and 1434 deletions

View file

@ -45,7 +45,7 @@ void CanvasTheme::set_tool_front_color(DrawingProgram& drawP) {
else
toolFrontColor = SkColor4f{1.0f, 1.0f, 1.0f, 1.0f};
if(oldToolFrontColor != toolFrontColor)
drawP.clear_draw_cache();
drawP.drawCache.clear_own_cached_surfaces();
}
void CanvasTheme::register_class() {