Added layer draw cache, and eraser works again
This commit is contained in:
parent
c2abccefc2
commit
7549ad23a1
29 changed files with 484 additions and 1434 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue