Loading libs/hwui/PathCache.cpp +5 −0 Original line number Original line Diff line number Diff line Loading @@ -283,6 +283,11 @@ void PathCache::generateTexture(const PathDescription& entry, SkBitmap* bitmap, mCache.put(entry, texture); mCache.put(entry, texture); } } } else { } 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; texture->cleanup = true; } } } } Loading libs/hwui/thread/TaskManager.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -29,7 +29,7 @@ namespace uirenderer { TaskManager::TaskManager() { TaskManager::TaskManager() { // Get the number of available CPUs. This value does not change over time. // 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++) { for (int i = 0; i < cpuCount / 2; i++) { String8 name; String8 name; Loading Loading
libs/hwui/PathCache.cpp +5 −0 Original line number Original line Diff line number Diff line Loading @@ -283,6 +283,11 @@ void PathCache::generateTexture(const PathDescription& entry, SkBitmap* bitmap, mCache.put(entry, texture); mCache.put(entry, texture); } } } else { } 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; texture->cleanup = true; } } } } Loading
libs/hwui/thread/TaskManager.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -29,7 +29,7 @@ namespace uirenderer { TaskManager::TaskManager() { TaskManager::TaskManager() { // Get the number of available CPUs. This value does not change over time. // 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++) { for (int i = 0; i < cpuCount / 2; i++) { String8 name; String8 name; Loading