DescriptionImplement 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
Committed: https://crrev.com/2fb8cdf52aabd723d1cf9724a4814cda98078fb8
Cr-Commit-Position: refs/heads/master@{#408850}
Patch Set 1 #
Total comments: 2
Patch Set 2 : make ratio local var #
Messages
Total messages: 13 (6 generated)
|