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

Commit bca403b2 authored by Kevin Lubick's avatar Kevin Lubick
Browse files

Replace use of deprecated GrDirectContext API

Change-Id: I136ac31fd693f3a32f76e2d728952f370cdf7683
parent 1f81948b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -169,7 +169,8 @@ void CacheManager::trimStaleResources() {
        return;
    }
    mGrContext->flushAndSubmit();
    mGrContext->purgeResourcesNotUsedInMs(std::chrono::seconds(30));
    mGrContext->performDeferredCleanup(std::chrono::seconds(30),
                                       GrPurgeResourceOptions::kAllResources);
}

void CacheManager::getMemoryUsage(size_t* cpuUsage, size_t* gpuUsage) {