diff options
author | 2018-03-01 10:49:26 -0500 | |
---|---|---|
committer | 2018-03-01 18:34:35 +0000 | |
commit | 44b61204d9f5681b9474db017577d56f42a32d66 (patch) | |
tree | 1335301b126893cb221353e5f34984c4a1702ad3 /tests/TestConfigParsing.cpp | |
parent | d50a193d8db74b8271a46fbd5ccf2a0681921a88 (diff) |
Add 1010102 support to Ganesh
Adds gl1010102, gles1010102, vk1010102, and mtl1010102
configs to DM.
This uses the same saveLayer approach as CPU, switching
to 8888 so that we have enough alpha precision.
Change-Id: I9f5b63747ec01031c8db97dadfc42f77e4863ccb
Reviewed-on: https://skia-review.googlesource.com/110500
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'tests/TestConfigParsing.cpp')
-rw-r--r-- | tests/TestConfigParsing.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/TestConfigParsing.cpp b/tests/TestConfigParsing.cpp index ec69235ccc..6ff1fd830f 100644 --- a/tests/TestConfigParsing.cpp +++ b/tests/TestConfigParsing.cpp @@ -110,7 +110,8 @@ DEF_TEST(ParseConfigs_DefaultConfigs, reporter) { "mtl", "gl4444", "gl565", - "gltestthreading" + "gltestthreading", + "gl1010102", }); SkCommandLineConfigArray configs; @@ -200,6 +201,9 @@ DEF_TEST(ParseConfigs_DefaultConfigs, reporter) { REPORTER_ASSERT(reporter, configs[35]->asConfigGpu()->getAlphaType() == kOpaque_SkAlphaType); REPORTER_ASSERT(reporter, configs[36]->asConfigGpu()); REPORTER_ASSERT(reporter, configs[36]->asConfigGpu()->getTestThreading()); + REPORTER_ASSERT(reporter, configs[37]->asConfigGpu()); + REPORTER_ASSERT(reporter, configs[37]->asConfigGpu()->getColorType() == + kRGBA_1010102_SkColorType); #endif } |