Skip to content

Commit 4b05971

Browse files
committed
fix: remove lowLatency
1 parent e512a37 commit 4b05971

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/canvas-layer.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@ module.exports = class CanvasLayer {
1212
this.canvas = document.createElement('canvas')
1313

1414
const desynchronized = process.platform !== "linux"
15-
const lowLatency = desynchronized
1615

1716
/**
1817
* The onscreen canvas context.
1918
* @type {CanvasRenderingContext2D}
2019
*/
21-
this.context = this.canvas.getContext('2d', { desynchronized: desynchronized, lowLatency: lowLatency })
20+
this.context = this.canvas.getContext('2d', { desynchronized })
2221
this.canvas.webkitImageSmoothingEnabled = false
2322
this.context.imageSmoothingEnabled = false
2423

@@ -33,7 +32,7 @@ module.exports = class CanvasLayer {
3332
* @type {CanvasRenderingContext2D}
3433
* @access private
3534
*/
36-
this.offscreenContext = this.offscreenCanvas.getContext('2d', { desynchronized: desynchronized, lowLatency: lowLatency })
35+
this.offscreenContext = this.offscreenCanvas.getContext('2d', { desynchronized })
3736
this.offscreenCanvas.webkitImageSmoothingEnabled = false
3837
this.offscreenContext.imageSmoothingEnabled = false
3938
}

0 commit comments

Comments
 (0)