[Impeller] Make validation errors fatal in non-release builds. (flutter/engine#36812)

This commit is contained in:
Zachary Anderson
2022-10-17 15:46:37 -07:00
committed by GitHub
parent ec786ccdc8
commit f292cf45fa

View File

@@ -24,8 +24,12 @@ ValidationLog::ValidationLog() = default;
ValidationLog::~ValidationLog() {
if (sValidationLogsDisabledCount <= 0) {
#if (FLUTTER_RUNTIME_MODE == FLUTTER_RUNTIME_MODE_RELEASE)
FML_LOG(ERROR) << stream_.str();
ImpellerValidationBreak();
#else
FML_LOG(FATAL) << stream_.str();
#endif
}
}