DescriptionFix the size of video textures uploaded to WebGL.
When the hardware-accelerated video decoding path is in use, the
expected size of the destination WebGL texture is the video's natural
width and height. However, the code was blindly copying the entire
video source texture, which might include padding rows from the video
encoder.
Change to using CopySubTextureCHROMIUM in these code paths, and rely on
the caller to allocate the destination texture with the expected size.
A regression test for this bug is being added to the WebGL 2.0 conformance
suite in https://github.com/KhronosGroup/WebGL/pull/2202 .
BUG=672895
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel
Review-Url: https://codereview.chromium.org/2562003003
Cr-Commit-Position: refs/heads/master@{#442745}
Committed: https://chromium.googlesource.com/chromium/src/+/4910ae5b242c441bd047b78bb5cb46ad954920fa
Patch Set 1 #
Total comments: 2
Patch Set 2 : Fixed review feedback from dalecurtis. Rebased. #Patch Set 3 : Rebased. Fixed Android build. #Messages
Total messages: 28 (12 generated)
|