Skip to content

Commit

Permalink
Merge pull request #765 from ecomfe/fix-extra-save
Browse files Browse the repository at this point in the history
fix(canvas): fix extra save caused in dirty rect.
  • Loading branch information
pissang committed May 24, 2021
2 parents afce44e + 27498ad commit 9780bd8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/canvas/Painter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,6 @@ export default class CanvasPainter implements PainterBase {
const repaintRects = useDirtyRect
&& layer.createRepaintRects(list, prevList, this._width, this._height);

ctx.save();

let start = paintAll ? layer.__startIndex : layer.__drawIndex;

const useTimer = !paintAll && layer.incremental && Date.now;
Expand Down

0 comments on commit 9780bd8

Please sign in to comment.