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

Commit e0a2435c authored by Romain Guy's avatar Romain Guy Committed by Android (Google) Code Review
Browse files

Merge "Properly account for created paths in the cache" into klp-dev

parents f4799069 0a8c51b1
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -283,6 +283,11 @@ void PathCache::generateTexture(const PathDescription& entry, SkBitmap* bitmap,
            mCache.put(entry, texture);
        }
    } else {
        // It's okay to add a texture that's bigger than the cache since
        // we'll trim the cache later when addToCache is set to false
        if (!addToCache) {
            mSize += size;
        }
        texture->cleanup = true;
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ namespace uirenderer {

TaskManager::TaskManager() {
    // Get the number of available CPUs. This value does not change over time.
    int cpuCount = sysconf(_SC_NPROCESSORS_ONLN);
    int cpuCount = sysconf(_SC_NPROCESSORS_CONF);

    for (int i = 0; i < cpuCount / 2; i++) {
        String8 name;