Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd028785 authored by Bruno BELANYI's avatar Bruno BELANYI
Browse files

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
parent 5860d928
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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");
        }