Tolerate minor differences in P3 colors
In V8ScriptValueSerializerTest.RoundTripImageBitmapWithColorSpaceInfo we serialize and deserialize an ImageBitmap in red color in P3 color space. We expect red in P3 to be {0x94, 0x3A, 0x3F, 0x28, 0x5F, 0x24, 0x00, 0x3C} when each color component is presented as a half float in Skia. However, difference in GPU hardware may result in small differences in Skia color conversion pipeline. This change adds a tolerance of 2 to the color compare to avoid failing ARM64 official test bot. Bug: 743300 Change-Id: Ie790c10f77a8a829d7b86e79f6155d4b9e43faf8 Reviewed-on: https://chromium-review.googlesource.com/572716Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Mohammad Reza Zakerinasab <zakerinasab@chromium.org> Cr-Commit-Position: refs/heads/master@{#487001}
Showing
Please register or sign in to comment