Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit c55cd11

Browse files
authored
[Impeller] Make DoMakeRasterSnapshot output timeline event. (#41197)
In Skia, there is such a timeline event in `SnapshotControllerSkia::DoMakeRasterSnapshot`. Therefore, since Impeller wants to mimic Skia and this event does take a long time sometimes, it seems reasonable to add this. [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
1 parent 2a2e631 commit c55cd11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

shell/common/snapshot_controller_impeller.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ sk_sp<DlImage> SnapshotControllerImpeller::MakeRasterSnapshot(
3333
sk_sp<DlImage> SnapshotControllerImpeller::DoMakeRasterSnapshot(
3434
const sk_sp<DisplayList>& display_list,
3535
SkISize size) {
36+
TRACE_EVENT0("flutter", __FUNCTION__);
3637
impeller::DisplayListDispatcher dispatcher;
3738
display_list->Dispatch(dispatcher);
3839
impeller::Picture picture = dispatcher.EndRecordingAsPicture();

0 commit comments

Comments
 (0)