From bc37dd56361b17e3e9815bc6d43b114c659b5a41 Mon Sep 17 00:00:00 2001 From: Sundong Ahn Date: Thu, 23 Apr 2020 21:21:00 +0900 Subject: Change to using sysprop for libvulkan The configstore service was deprecated. So change to use sysprop instead of configstore Bug: 124531214 Test: m -j Change-Id: I08a02f1f3ea8d86c45aff3cf3d72930a3d0b7898 --- vulkan/libvulkan/driver.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'vulkan/libvulkan/driver.cpp') diff --git a/vulkan/libvulkan/driver.cpp b/vulkan/libvulkan/driver.cpp index a7ec4aed1d..a5f0c9f803 100644 --- a/vulkan/libvulkan/driver.cpp +++ b/vulkan/libvulkan/driver.cpp @@ -23,9 +23,10 @@ #include #include +#include +#include #include #include -#include #include #include #include @@ -959,9 +960,7 @@ VkResult EnumerateDeviceExtensionProperties( VK_KHR_INCREMENTAL_PRESENT_EXTENSION_NAME, VK_KHR_INCREMENTAL_PRESENT_SPEC_VERSION}); - bool hdrBoardConfig = - getBool( - false); + bool hdrBoardConfig = android::sysprop::has_HDR_display(false); if (hdrBoardConfig) { loader_extensions.push_back({VK_EXT_HDR_METADATA_EXTENSION_NAME, VK_EXT_HDR_METADATA_SPEC_VERSION}); -- cgit v1.2.3-59-g8ed1b