Support uploading linear gamma profile ImageBitmaps to WebGL textures.
These are converted to RGBA16F format, which WebGLImageConversion didn't handle, and the calling code didn't detect that failure. In WebGLImageConversion, handle unpacking half-float data to 32-bit floating-point, as well as all packing conversions to the supported texture upload formats. Expand comments describing the needed conversions and remove old incorrect FIXMEs. Tested thoroughly with the enhanced image_bitmap_from_blob WebGL conformance tests in https://github.com/KhronosGroup/WebGL/pull/3100 . All versions of the test (2D/3D, all texture upload formats) pass in Chromium with this fix. Bug: 1058160 Change-Id: I6bf4e5b9370cbd471e02030858ca1e93c7b88af3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2253372 Commit-Queue: Kenneth Russell <kbr@chromium.org> Reviewed-by:Shrek Shao <shrekshao@google.com> Reviewed-by:
James Darpinian <jdarpinian@chromium.org> Cr-Commit-Position: refs/heads/master@{#781140}
Showing
This diff is collapsed.
Please register or sign in to comment