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

Commit d085f1d

Browse files
Do not make an extra submit callback during SurfaceFrame destruction if the frame was already submitted (#5669)
1 parent b663010 commit d085f1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell/common/surface.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ SurfaceFrame::SurfaceFrame(sk_sp<SkSurface> surface,
2121
}
2222

2323
SurfaceFrame::~SurfaceFrame() {
24-
if (submit_callback_) {
24+
if (submit_callback_ && !submitted_) {
2525
// Dropping without a Submit.
2626
submit_callback_(*this, nullptr);
2727
}

0 commit comments

Comments
 (0)