webgl: Fix framebuffer readback format for software compositing
ReadBackFramebuffer assumes that the destination buffer size and format match the source. However, this isn't true when exporting the buffer for software compositiing since it only supports RGBA_8888, but the buffer could be RGBA_F16. Also fixes undefined behavior due to using the same buffer as source and destination for SkPixmap::readPixels which does a memcpy under the hood. Bug: 1122638 Change-Id: I887f70ea65fdf7ad215f5db22b39d0727fc3d09a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2393160 Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org> Reviewed-by:Kai Ninomiya <kainino@chromium.org> Cr-Commit-Position: refs/heads/master@{#805977}
Showing
This diff is collapsed.
Please register or sign in to comment