You could do

```
if (this.canvas_.width != size[0] || this.canvas_.height != size[1]) {
```

and thereby avoid creating an array on each frame (60 times per second).