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

Commit c5e6a080 authored by Derek Sollenberger's avatar Derek Sollenberger Committed by android-build-merger
Browse files

Merge "Unpin bitmaps but don't purge all scratch resources." into pi-dev am: 1c70ecb4

am: b22ffad7

Change-Id: Ib5b59f780003b30b43219288b4153b20b2db1032
parents 69891c1d b22ffad7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@ TaskManager* SkiaPipeline::getTaskManager() {
}

void SkiaPipeline::onDestroyHardwareResources() {
    unpinImages();
    mRenderThread.cacheManager().trimStaleResources();
}

+1 −4
Original line number Diff line number Diff line
@@ -166,10 +166,7 @@ void CacheManager::trimStaleResources() {
        return;
    }
    mGrContext->flush();
    // Here we purge all the unlocked scratch resources (leaving those resources w/ persistent data)
    // and then purge those w/ persistent data based on age.
    mGrContext->purgeUnlockedResources(true);
    mGrContext->purgeResourcesNotUsedInMs(std::chrono::seconds(10));
    mGrContext->purgeResourcesNotUsedInMs(std::chrono::seconds(30));
}

sp<skiapipeline::VectorDrawableAtlas> CacheManager::acquireVectorDrawableAtlas() {