Skip to content

Commit 1205753

Browse files
Add a trace to GpuSurfaceMetal around canvas flushing (flutter#30667)
1 parent a8d519f commit 1205753

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

shell/gpu/gpu_surface_metal.mm

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@
133133
return false;
134134
}
135135

136-
canvas->flush();
136+
{
137+
TRACE_EVENT0("flutter", "SkCanvas::Flush");
138+
canvas->flush();
139+
}
137140

138141
uintptr_t texture = reinterpret_cast<uintptr_t>(drawable.get().texture);
139142
for (auto& entry : damage_) {
@@ -191,7 +194,10 @@
191194
return false;
192195
}
193196

194-
canvas->flush();
197+
{
198+
TRACE_EVENT0("flutter", "SkCanvas::Flush");
199+
canvas->flush();
200+
}
195201

196202
return delegate->PresentTexture(texture);
197203
};

0 commit comments

Comments
 (0)