From f2f111d77fa813f9660489f6e1ad130b6e0010c0 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Mon, 26 Aug 2019 14:37:39 +0200 Subject: [PATCH] LoggingAnnotator: don't output to trace file if there is no platform This is a revert of a small chunk of https://chromium-review.googlesource.com/c/angle/angle/+/1761163 that is suspect to cause weird failures on the GPU FYI waterfall in Debug on Windows, maybe because the many disk writes are too slow. BUG=chromium:997667 TBR=jmadill@chromium.org Change-Id: Ifb799d2ed90682e55e5cc7c0ce21d2598bf30c9e Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1768371 Reviewed-by: Corentin Wallez Commit-Queue: Corentin Wallez --- src/libANGLE/LoggingAnnotator.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libANGLE/LoggingAnnotator.cpp b/src/libANGLE/LoggingAnnotator.cpp index 04bbaadf7..b3721acec 100644 --- a/src/libANGLE/LoggingAnnotator.cpp +++ b/src/libANGLE/LoggingAnnotator.cpp @@ -54,7 +54,10 @@ void LoggingAnnotator::logMessage(const gl::LogMessage &msg) const UNREACHABLE(); } } - gl::Trace(msg.getSeverity(), msg.getMessage().c_str()); + else + { + gl::Trace(msg.getSeverity(), msg.getMessage().c_str()); + } } } // namespace angle