(x, y, w, h)
| 234 | |
| 235 | // Track what parts of the visible canvas that need updating |
| 236 | _damage(x, y, w, h) { |
| 237 | if (x < this._damageBounds.left) { |
| 238 | this._damageBounds.left = x; |
| 239 | } |
| 240 | if (y < this._damageBounds.top) { |
| 241 | this._damageBounds.top = y; |
| 242 | } |
| 243 | if ((x + w) > this._damageBounds.right) { |
| 244 | this._damageBounds.right = x + w; |
| 245 | } |
| 246 | if ((y + h) > this._damageBounds.bottom) { |
| 247 | this._damageBounds.bottom = y + h; |
| 248 | } |
| 249 | } |
| 250 | |
| 251 | // Update the visible canvas with the contents of the |
| 252 | // rendering canvas |
no outgoing calls
no test coverage detected