diff options
author | Scott Lobdell <slobdell@google.com> | 2021-05-26 19:19:19 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-05-26 19:19:19 +0000 |
commit | fbb83143f627df95846f02521343e7ee265329ff (patch) | |
tree | 5946cecaa449accf635a5bc9184a691c1ccd8114 /libs/hwui/renderthread/CacheManager.cpp | |
parent | 95d43130d3c0ff2c80f9f93d5f7e4617129cf16d (diff) | |
parent | b63d22f7202ceaaa417dc87a8024093a229e4ac7 (diff) |
Merge changes from topic "SP1A.210513.004" into s-keystone-qcom-dev
* changes:
Fix bugs in AppOp restrictions
Fix IndexOutOfBoundsException when calling dispatchProvideStructure()
Keyguard - Fix clock in occluded state
Update resume icon and colors
Revert "Change mounting storage data and obb flag to on by default"
Merge SP1A.210513.004
Diffstat (limited to 'libs/hwui/renderthread/CacheManager.cpp')
-rw-r--r-- | libs/hwui/renderthread/CacheManager.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/libs/hwui/renderthread/CacheManager.cpp b/libs/hwui/renderthread/CacheManager.cpp index d998e5031984..5047be979e41 100644 --- a/libs/hwui/renderthread/CacheManager.cpp +++ b/libs/hwui/renderthread/CacheManager.cpp @@ -140,7 +140,6 @@ void CacheManager::dumpMemoryUsage(String8& log, const RenderState* renderState) log.appendFormat(" Size: %.2f kB \n", SkGraphics::GetFontCacheUsed() / 1024.0f); log.appendFormat(" Glyph Count: %d \n", SkGraphics::GetFontCacheCountUsed()); - log.appendFormat("CPU Caches:\n"); std::vector<skiapipeline::ResourcePair> cpuResourceMap = { {"skia/sk_resource_cache/bitmap_", "Bitmaps"}, {"skia/sk_resource_cache/rrect-blur_", "Masks"}, @@ -149,20 +148,20 @@ void CacheManager::dumpMemoryUsage(String8& log, const RenderState* renderState) }; skiapipeline::SkiaMemoryTracer cpuTracer(cpuResourceMap, false); SkGraphics::DumpMemoryStatistics(&cpuTracer); - cpuTracer.logOutput(log); + if (cpuTracer.hasOutput()) { + log.appendFormat("CPU Caches:\n"); + cpuTracer.logOutput(log); + } - log.appendFormat("GPU Caches:\n"); skiapipeline::SkiaMemoryTracer gpuTracer("category", true); mGrContext->dumpMemoryStatistics(&gpuTracer); - gpuTracer.logOutput(log); - - log.appendFormat("Other Caches:\n"); - log.appendFormat(" Current / Maximum\n"); + if (gpuTracer.hasOutput()) { + log.appendFormat("GPU Caches:\n"); + gpuTracer.logOutput(log); + } - if (renderState) { - if (renderState->mActiveLayers.size() > 0) { - log.appendFormat(" Layer Info:\n"); - } + if (renderState && renderState->mActiveLayers.size() > 0) { + log.appendFormat("Layer Info:\n"); const char* layerType = Properties::getRenderPipelineType() == RenderPipelineType::SkiaGL ? "GlLayer" |