()
| 21 | } |
| 22 | |
| 23 | run() { |
| 24 | const frame = this.pipeline.consume(); |
| 25 | if (frame) { |
| 26 | this.context.clearRect(0, 0, this.canvas.width, this.canvas.height); |
| 27 | this.context.drawImage(frame.image, 0, 0, this.canvas.width, this.canvas.height); |
| 28 | } |
| 29 | this.next(); |
| 30 | } |
| 31 | } |