提交 c7c94974 编写于 作者: C Chinmay Garde 提交者: GitHub

Don't log GL connection information in debug. (#2965)

上级 98deb4f2
......@@ -33,21 +33,11 @@ bool GaneshCanvas::SetupGrGLInterface() {
kOpenGL_GrBackend,
reinterpret_cast<GrBackendContext>(GrGLCreateNativeInterface())));
#ifndef NDEBUG
// In debug mode, always log the GL connection description.
{
flow::GLConnection connection;
FTL_LOG(INFO) << connection.Description();
}
#else
// In release mode, log the GL connection description in case of gr_context
// setup failure.
if (gr_context_ == nullptr) {
flow::GLConnection connection;
FTL_LOG(INFO) << "Failed to setup GL context. Aborting.";
FTL_LOG(INFO) << connection.Description();
}
#endif
if (!gr_context_)
return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册