[Impeller] Add additional trace around acquisition of next Metal drawable. (flutter/engine#35074)

This commit is contained in:
Chinmay Garde
2022-08-01 19:08:25 -07:00
committed by GitHub
parent 91d348e6e3
commit 4772ea7548

View File

@@ -24,7 +24,11 @@ std::unique_ptr<Surface> SurfaceMTL::WrapCurrentMetalLayerDrawable(
return nullptr;
}
auto current_drawable = [layer nextDrawable];
id<CAMetalDrawable> current_drawable = nil;
{
TRACE_EVENT0("impeller", "WaitForNextDrawable");
current_drawable = [layer nextDrawable];
}
if (!current_drawable) {
VALIDATION_LOG << "Could not acquire current drawable.";