This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -424,8 +424,6 @@ RasterStatus Rasterizer::DrawToSurface(flutter::LayerTree& layer_tree) {
424424 FML_DCHECK (!frame->IsSubmitted ());
425425 external_view_embedder->SubmitFrame (surface_->GetContext (),
426426 std::move (frame));
427- // The frame must be submitted at this point.
428- FML_DCHECK (frame->IsSubmitted ());
429427 } else {
430428 frame->Submit ();
431429 }
Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ namespace flutter {
1111SurfaceFrame::SurfaceFrame (sk_sp<SkSurface> surface,
1212 bool supports_readback,
1313 const SubmitCallback& submit_callback)
14- : submitted_(false ),
15- surface_ (surface),
14+ : surface_(surface),
1615 supports_readback_ (supports_readback),
1716 submit_callback_(submit_callback) {
1817 FML_DCHECK (submit_callback_);
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class SurfaceFrame {
3737 bool supports_readback () { return supports_readback_; }
3838
3939 private:
40- bool submitted_;
40+ bool submitted_ = false ;
4141 sk_sp<SkSurface> surface_;
4242 bool supports_readback_;
4343 SubmitCallback submit_callback_;
You can’t perform that action at this time.
0 commit comments