23 for (
int i = 0;
i < 3;
i++) {
24 for (
int j = 0; j < 3; j++) {
25 if (
x.vals[
i][j] !=
y.vals[
i][j]) {
64 return x.g ==
y.g &&
x.a ==
y.a &&
x.b ==
y.b &&
x.c ==
y.c &&
x.d ==
y.d &&
x.e ==
y.e &&
72 if (tf.
a == 1 && tf.
b == 0 && tf.
c == 0 && tf.
d == 0 && tf.
e == 0 && tf.
f == 0) {
122 return "non-numeric";
126 std::string gpuName)
const {
127 std::map<std::string, std::string> kvPairs = {
128 {
"surface_config", fConfig},
135 kvPairs.merge(getCpuOrGpuKeyValuePairs(cpuName, gpuName));
140 std::string gpuName)
const {
141 return getCpuOrGpuKeyValuePairs(cpuName, gpuName);
144std::map<std::string, std::string> SurfaceManager::getCpuOrGpuKeyValuePairs(
145 std::string cpuName, std::string gpuName)
const {
151 return std::map<std::string, std::string>();
154 return std::map<std::string, std::string>{
156 {
"cpu_or_gpu_value", fCpuOrGpu ==
CpuOrGpu::kCPU ? cpuName : gpuName},
static bool eq(const SkM44 &a, const SkM44 &b, float tol)
static constexpr skcms_Matrix3x3 gNarrow_toXYZD50
SK_API SkString SkStringPrintf(const char *format,...) SK_PRINTF_LIKE(1
Creates a new string and writes into it using a printf()-style format.
static std::string identify_transfer_fn(SkColorSpace *cs)
static std::string identify_gamut(SkColorSpace *cs)
SkAlphaType alphaType() const
SkColorSpace * colorSpace() const
SkColorType colorType() const
bool toXYZD50(skcms_Matrix3x3 *toXYZD50) const
void transferFn(float gabcdef[7]) const
const char * c_str() const
CpuOrGpu isCpuOrGpuBound() const
std::map< std::string, std::string > getGoldKeyValuePairs(std::string cpuName, std::string gpuName) const
std::map< std::string, std::string > getPerfKeyValuePairs(std::string cpuName, std::string gpuName) const
static constexpr skcms_Matrix3x3 kSRGB
static constexpr skcms_Matrix3x3 kAdobeRGB
static constexpr skcms_Matrix3x3 kXYZ
static constexpr skcms_Matrix3x3 kRec2020
static constexpr skcms_Matrix3x3 kDisplayP3
static constexpr skcms_TransferFunction kRec2020
static constexpr skcms_TransferFunction kSRGB
static constexpr skcms_TransferFunction kHLG
static constexpr skcms_TransferFunction kPQ
skcms_TFType skcms_TransferFunction_getType(const skcms_TransferFunction *tf)