From ea9bf2a592986073ec1205b4489985d1ccf823aa Mon Sep 17 00:00:00 2001 From: Jerome Gaillard Date: Wed, 13 Mar 2024 19:32:31 +0000 Subject: Use HWUIProperties.sysprop in host builds It uses android-base properties now, so is compatible with host. Bug: 322360037 Test: build libhwui on host Change-Id: I6502fe3001aac3d95ea2cd2c8327b8fe7baae55a --- libs/hwui/Properties.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'libs/hwui/Properties.cpp') diff --git a/libs/hwui/Properties.cpp b/libs/hwui/Properties.cpp index 755332ff66fd..325bdd63ab22 100644 --- a/libs/hwui/Properties.cpp +++ b/libs/hwui/Properties.cpp @@ -16,10 +16,6 @@ #include "Properties.h" -#include "Debug.h" -#ifdef __ANDROID__ -#include "HWUIProperties.sysprop.h" -#endif #include #include #include @@ -28,6 +24,8 @@ #include #include +#include "Debug.h" +#include "HWUIProperties.sysprop.h" #include "src/core/SkTraceEventCommon.h" #ifdef __ANDROID__ @@ -47,16 +45,6 @@ constexpr bool hdr_10bit_plus() { namespace android { namespace uirenderer { -#ifndef __ANDROID__ // Layoutlib does not compile HWUIProperties.sysprop as it depends on cutils properties -std::optional use_vulkan() { - return base::GetBoolProperty("ro.hwui.use_vulkan", true); -} - -std::optional render_ahead() { - return base::GetIntProperty("ro.hwui.render_ahead", 0); -} -#endif - bool Properties::debugLayersUpdates = false; bool Properties::debugOverdraw = false; bool Properties::debugTraceGpuResourceCategories = false; -- cgit v1.2.3-59-g8ed1b