diff options
author | 2024-03-13 19:32:31 +0000 | |
---|---|---|
committer | 2024-03-13 19:34:58 +0000 | |
commit | ea9bf2a592986073ec1205b4489985d1ccf823aa (patch) | |
tree | a878a327b30a169b2be8a238c6ff0f3265f89e2b /libs/hwui/Properties.cpp | |
parent | fc0e80a26e6c8ca2d0d29c2f0c5c24b460d547ff (diff) |
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
Diffstat (limited to 'libs/hwui/Properties.cpp')
-rw-r--r-- | libs/hwui/Properties.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
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 <android-base/properties.h> #include <cutils/compiler.h> #include <log/log.h> @@ -28,6 +24,8 @@ #include <cstdlib> #include <optional> +#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<bool> use_vulkan() { - return base::GetBoolProperty("ro.hwui.use_vulkan", true); -} - -std::optional<std::int32_t> render_ahead() { - return base::GetIntProperty("ro.hwui.render_ahead", 0); -} -#endif - bool Properties::debugLayersUpdates = false; bool Properties::debugOverdraw = false; bool Properties::debugTraceGpuResourceCategories = false; |