ui: Add an admissible error in GL image tests.

When testing YUV images, initially we picked an RGB color so that
RGB -> YVU on the CPU converted back to RGB on the GPU produced the
original RGB values without any error.

Unfortunately this doesn't work on all the devices.

This CL adds an admissible per component error in image tests, so
that YUV tests pass on all the devices.

Bug: 683347
Test: ozone_gl_unittests --gtest_also_run_disabled_tests on eve
Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;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
Change-Id: I1cd16316557ca9e827d684fa8fe031282bebffff
Reviewed-on: https://chromium-review.googlesource.com/729760
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: David Reveman <reveman@chromium.org>
Reviewed-by: Miguel Casas <mcasas@chromium.org>
Commit-Queue: Daniele Castagna <dcastagna@chromium.org>
Cr-Commit-Position: refs/heads/master@{#510719}
7 files changed