#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include <algorithm>
#include <cmath>
#include <tuple>
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/color_space.h"
#include "ui/gfx/skia_color_space_util.h"
namespace gfx {
namespace {
float Diff(const SkV4& u, const SkV4& v) { … }
TEST(ColorSpace, RGBToYUV) { … }
TEST(ColorSpace, RangeAdjust) { … }
TEST(ColorSpace, Blending) { … }
TEST(ColorSpace, ConversionToAndFromSkColorSpace) { … }
TEST(ColorSpace, PQAndHLGToSkColorSpace) { … }
TEST(ColorSpace, MixedInvalid) { … }
TEST(ColorSpace, MixedSRGBWithRec601) { … }
TEST(ColorSpace, MixedHDR10WithRec709) { … }
TEST(ColorSpace, GetsPrimariesTransferMatrixAndRange) { … }
TEST(ColorSpace, ExpectationsMatchSRGB) { … }
TEST(ColorSpaceUtil, SkcmsMatrixConvert) { … }
}
}