diff options
author | 2023-08-24 11:37:36 -0400 | |
---|---|---|
committer | 2023-08-24 11:37:36 -0400 | |
commit | 0341ba5bb3dd33ab7d7a50d49056c4698bd3a2a9 (patch) | |
tree | 689b0427c811d36e24a10d7d819529120c8e6eba | |
parent | af3eb24f8e68617e7a4686edd6201fea1b0fe59d (diff) |
Don't access IAllocator from isolated process
Fixes: 297302510
Test: n/a
Change-Id: If9a3527f5dc52e4cc8080cea2be4e39ed04890e9
-rw-r--r-- | libs/hwui/renderthread/RenderProxy.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp index f949dddd8b44..be163bad77a7 100644 --- a/libs/hwui/renderthread/RenderProxy.cpp +++ b/libs/hwui/renderthread/RenderProxy.cpp @@ -323,9 +323,11 @@ void RenderProxy::dumpGraphicsMemory(int fd, bool includeProfileData, bool reset } }); } - std::string grallocInfo; - GraphicBufferAllocator::getInstance().dump(grallocInfo); - dprintf(fd, "%s\n", grallocInfo.c_str()); + if (!Properties::isolatedProcess) { + std::string grallocInfo; + GraphicBufferAllocator::getInstance().dump(grallocInfo); + dprintf(fd, "%s\n", grallocInfo.c_str()); + } } void RenderProxy::getMemoryUsage(size_t* cpuUsage, size_t* gpuUsage) { |