summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Bruno BELANYI <ambroisie@google.com> 2023-10-13 14:39:53 +0000
committer Bruno BELANYI <ambroisie@google.com> 2023-10-13 15:42:04 +0000
commitfd028785dbe4e2281b798ae9a93e93b8c9ea4104 (patch)
tree45eeadb5c925ddaa384e6e91639339841e75aab9
parent5860d9286aeb1df020431536ba779952044ce6b4 (diff)
SF: use 'base::GetBoolProperty'
Simple clean-up, as I was in the area. Test: manual - check that the cache is still being generated Change-Id: I4e1ab726064cdfa45d7adbd321d0647bab4507b6
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index e08690a2bb..1ea4bcd70a 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -864,9 +864,7 @@ void SurfaceFlinger::init() FTL_FAKE_GUARD(kMainThreadContext) {
mPowerAdvisor->init();
- char primeShaderCache[PROPERTY_VALUE_MAX];
- property_get("service.sf.prime_shader_cache", primeShaderCache, "1");
- if (atoi(primeShaderCache)) {
+ if (base::GetBoolProperty("service.sf.prime_shader_cache"s, true)) {
if (setSchedFifo(false) != NO_ERROR) {
ALOGW("Can't set SCHED_OTHER for primeCache");
}