diff options
author | 2021-09-29 10:52:41 -0700 | |
---|---|---|
committer | 2021-09-29 12:07:11 -0700 | |
commit | 5f62a6002aaeb321e1344931a1c981f3cb7bac6c (patch) | |
tree | 973eba408e271a973c002f5684e0d99a2685f728 /services/surfaceflinger/SurfaceFlingerProperties.cpp | |
parent | 5b6fab8f87ef8cee5ed16b8523e5746cbc5b206a (diff) |
No-op color management sysprop.
Color management in SurfaceFlinger will always be defaulted to true
beginning in Android 13.
Bug: 200309301
Test: Builds
Test: libsurfaceflinger_unittest
Change-Id: Icc83769f55cf6872cc913f8e0f4247019ba18e93
Diffstat (limited to 'services/surfaceflinger/SurfaceFlingerProperties.cpp')
-rw-r--r-- | services/surfaceflinger/SurfaceFlingerProperties.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/services/surfaceflinger/SurfaceFlingerProperties.cpp b/services/surfaceflinger/SurfaceFlingerProperties.cpp index e15eae8c36..a8117f7f57 100644 --- a/services/surfaceflinger/SurfaceFlingerProperties.cpp +++ b/services/surfaceflinger/SurfaceFlingerProperties.cpp @@ -195,17 +195,6 @@ SurfaceFlingerProperties::primary_display_orientation_values primary_display_ori return SurfaceFlingerProperties::primary_display_orientation_values::ORIENTATION_0; } -bool use_color_management(bool defaultValue) { - auto tmpuseColorManagement = SurfaceFlingerProperties::use_color_management(); - auto tmpHasHDRDisplayVal = has_HDR_display(defaultValue); - auto tmpHasWideColorDisplayVal = has_wide_color_display(defaultValue); - - auto tmpuseColorManagementVal = tmpuseColorManagement.has_value() ? *tmpuseColorManagement : - defaultValue; - - return tmpuseColorManagementVal || tmpHasHDRDisplayVal || tmpHasWideColorDisplayVal; -} - int64_t default_composition_dataspace(Dataspace defaultValue) { auto temp = SurfaceFlingerProperties::default_composition_dataspace(); if (temp.has_value()) { |