summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/VulkanSurface.cpp
diff options
context:
space:
mode:
authorMike Reed <reed@google.com>2020-05-26 10:50:21 -0400
committerMike Reed <reed@google.com>2020-05-26 14:54:18 +0000
commit7ac1af37c0fed415f15490fe0d2ac73222f162bd (patch)
tree7af1d797f196a838b5eb50fc0db7cc9b51b3aab0 /libs/hwui/renderthread/VulkanSurface.cpp
parent0c82027ed6a4c22635a6de3e9547d8b39e01015d (diff)
switch to kDisplayP3 enum
This has the same values as kDCIP3, just a more accurate name. See skbug.com/9792 Test: make Change-Id: Id775857f08247c49033e8c2fe0c3255dfc44cace
Diffstat (limited to 'libs/hwui/renderthread/VulkanSurface.cpp')
-rw-r--r--libs/hwui/renderthread/VulkanSurface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/VulkanSurface.cpp b/libs/hwui/renderthread/VulkanSurface.cpp
index 9cbb754be9b9..1da09b454da7 100644
--- a/libs/hwui/renderthread/VulkanSurface.cpp
+++ b/libs/hwui/renderthread/VulkanSurface.cpp
@@ -200,7 +200,7 @@ bool VulkanSurface::InitializeWindowInfoStruct(ANativeWindow* window, ColorMode
"Could not get gamut matrix from color space");
if (memcmp(&surfaceGamut, &SkNamedGamut::kSRGB, sizeof(surfaceGamut)) == 0) {
outWindowInfo->dataspace = HAL_DATASPACE_V0_SCRGB;
- } else if (memcmp(&surfaceGamut, &SkNamedGamut::kDCIP3, sizeof(surfaceGamut)) == 0) {
+ } else if (memcmp(&surfaceGamut, &SkNamedGamut::kDisplayP3, sizeof(surfaceGamut)) == 0) {
outWindowInfo->dataspace = HAL_DATASPACE_DISPLAY_P3;
} else {
LOG_ALWAYS_FATAL("Unreachable: unsupported wide color space.");