Require skia.mojom.InlineBitmap pixels to be tightly packed N32 format
This avoids buffer-size mistakes when reading the pixel data. We will CHECK() on the sender side if the InlineBitmap creator violates this requirement when converting from an SkBitmap, and we will reject the message on the receiving side if the number of bytes does not match exactly w*h*4. Adds tests for the InlineBitmap expectations, and remove the unit test and verification code in the extensions host side, as the wire format can no longer be invalid and require conversion. Bug: 1144462 Change-Id: Ie90b91513f40a58294ffd4d84dac88624b6082b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2546967Reviewed-by:Florin Malita <fmalita@chromium.org> Reviewed-by:
Daniel Cheng <dcheng@chromium.org> Reviewed-by:
Reilly Grant <reillyg@chromium.org> Commit-Queue: danakj <danakj@chromium.org> Cr-Commit-Position: refs/heads/master@{#829342}
Showing
Please register or sign in to comment