Implement resize option for createImageBitmap(HTMLVideoElement)
Without resize, this function works like this: It creates a ImageBuffer, and calls video->paintCurrentFrame to the SkCanvas backed by the buffer, then it calls buffer's snapshot to get a SkImage. To make resize efficient, we just need to carefully calculate the parameter for the video->paintCurrentFrame, and we can do the resize in one pass. BUG=627855 Review-Url: https://codereview.chromium.org/2192103002 Cr-Commit-Position: refs/heads/master@{#408850}
Showing
Please register or sign in to comment