mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[Impeller] Do not terminate on performance related validation failures (flutter/engine#36776)
This commit is contained in:
parent
53383fbdf7
commit
428bd7ee93
@ -347,9 +347,16 @@ ContextVK::ContextVK(
|
||||
VkDebugUtilsMessageTypeFlagsEXT type,
|
||||
const VkDebugUtilsMessengerCallbackDataEXT* data,
|
||||
void* user_data) -> VkBool32 {
|
||||
FML_DCHECK(false)
|
||||
<< vk::to_string(vk::DebugUtilsMessageSeverityFlagBitsEXT{severity})
|
||||
<< ": " << data->pMessage;
|
||||
if (type == VK_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT) {
|
||||
// do not terminate on performance warnings.
|
||||
FML_LOG(ERROR)
|
||||
<< vk::to_string(vk::DebugUtilsMessageSeverityFlagBitsEXT{severity})
|
||||
<< ": " << data->pMessage;
|
||||
} else {
|
||||
FML_DCHECK(false)
|
||||
<< vk::to_string(vk::DebugUtilsMessageSeverityFlagBitsEXT{severity})
|
||||
<< ": " << data->pMessage;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user