Index: tests/TestConfigParsing.cpp |
diff --git a/tests/TestConfigParsing.cpp b/tests/TestConfigParsing.cpp |
index 777d1fba664618dd7a1c4ea3c36725bcc99e0ee4..4464cce95511d173df191a67a1d99da0423aa563 100644 |
--- a/tests/TestConfigParsing.cpp |
+++ b/tests/TestConfigParsing.cpp |
@@ -43,6 +43,9 @@ DEF_TEST(ParseConfigs_Gpu, reporter) { |
REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getUseNVPR() == false); |
REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getUseDIText() == false); |
REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getSamples() == 0); |
+ REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getColorType() == kN32_SkColorType); |
+ REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getProfileType() |
+ == kLinear_SkColorProfileType); |
#endif |
} |
@@ -65,7 +68,8 @@ DEF_TEST(ParseConfigs_DefaultConfigs, reporter) { |
SkCommandLineFlags::StringArray config1 = make_string_array({ |
"565", "8888", "debug", "gpu", "gpudebug", "gpudft", "gpunull", "msaa16", "msaa4", |
"nonrendering", "null", "nullgpu", "nvprmsaa16", "nvprmsaa4", "pdf", "pdf_poppler", |
- "skp", "svg", "xps", "angle", "angle-gl", "commandbuffer", "mesa", "hwui" |
+ "skp", "svg", "xps", "angle", "angle-gl", "commandbuffer", "mesa", "hwui", |
+ "gpuf16", "gpusrgb", "anglesrgb" |
}); |
SkCommandLineConfigArray configs; |
@@ -101,11 +105,22 @@ DEF_TEST(ParseConfigs_DefaultConfigs, reporter) { |
REPORTER_ASSERT(reporter, !configs[17]->asConfigGpu()); |
REPORTER_ASSERT(reporter, !configs[18]->asConfigGpu()); |
REPORTER_ASSERT(reporter, !configs[23]->asConfigGpu()); |
+ REPORTER_ASSERT(reporter, configs[24]->asConfigGpu()->getColorType() |
+ == kRGBA_F16_SkColorType); |
+ REPORTER_ASSERT(reporter, configs[24]->asConfigGpu()->getProfileType() |
+ == kLinear_SkColorProfileType); |
+ REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getColorType() |
+ == kN32_SkColorType); |
+ REPORTER_ASSERT(reporter, configs[25]->asConfigGpu()->getProfileType() |
+ == kSRGB_SkColorProfileType); |
#if SK_ANGLE |
#ifdef SK_BUILD_FOR_WIN |
REPORTER_ASSERT(reporter, configs[19]->asConfigGpu()); |
+ REPORTER_ASSERT(reporter, configs[26]->asConfigGpu()->getProfileType() |
+ == kSRGB_SkColorProfileType); |
#else |
REPORTER_ASSERT(reporter, !configs[19]->asConfigGpu()); |
+ REPORTER_ASSERT(reporter, !configs[26]->asConfigGpu()); |
#endif |
REPORTER_ASSERT(reporter, configs[20]->asConfigGpu()); |
#else |