mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Do not make an extra submit callback during SurfaceFrame destruction if the frame was already submitted (flutter/engine#5669)
This commit is contained in:
parent
e4171d6e4e
commit
cc2776129d
@ -21,7 +21,7 @@ SurfaceFrame::SurfaceFrame(sk_sp<SkSurface> surface,
|
||||
}
|
||||
|
||||
SurfaceFrame::~SurfaceFrame() {
|
||||
if (submit_callback_) {
|
||||
if (submit_callback_ && !submitted_) {
|
||||
// Dropping without a Submit.
|
||||
submit_callback_(*this, nullptr);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user