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

Commit 0341ba5b authored by John Reck's avatar John Reck
Browse files

Don't access IAllocator from isolated process

Fixes: 297302510
Test: n/a
Change-Id: If9a3527f5dc52e4cc8080cea2be4e39ed04890e9
parent af3eb24f
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -323,10 +323,12 @@ void RenderProxy::dumpGraphicsMemory(int fd, bool includeProfileData, bool reset
            }
        });
    }
    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) {
    if (RenderThread::hasInstance()) {