Merge "Don't create RenderThread for dumpsys gfxinfo"

This commit is contained in:
TreeHugger Robot
2019-01-23 21:56:55 +00:00
committed by Android (Google) Code Review

View File

@@ -241,8 +241,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) {