Sizes the canvas's drawing buffer to width by height CSS pixels at scale device pixels each, as VideoRenderer.setViewport does. The canvas belongs to the worker, so the page sets its size through here rather than on the element.
VideoRenderer.setViewport