Don't create RenderThread for dumpsys gfxinfo

Change-Id: I4cbad14ad6f952ddec11eb732701909fd75ff137
Fixes: 121129527
Test: guess
This commit is contained in:
John Reck
2019-01-23 10:33:41 -08:00
parent 6f19cbdd2f
commit ba7e965316

View File

@@ -244,8 +244,10 @@ uint32_t RenderProxy::frameTimePercentile(int percentile) {
}
void RenderProxy::dumpGraphicsMemory(int fd) {
auto& thread = RenderThread::getInstance();
thread.queue().runSync([&]() { thread.dumpGraphicsMemory(fd); });
if (RenderThread::hasInstance()) {
auto& thread = RenderThread::getInstance();
thread.queue().runSync([&]() { thread.dumpGraphicsMemory(fd); });
}
}
void RenderProxy::setProcessStatsBuffer(int fd) {