mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Flush background canvas before allocating a new surface (flutter/engine#17308)
This commit is contained in:
parent
700e276dd4
commit
11d0020dd6
@ -451,6 +451,9 @@ bool FlutterPlatformViewsController::SubmitFrame(GrContext* gr_context,
|
||||
std::shared_ptr<IOSContext> ios_context,
|
||||
SkCanvas* background_canvas) {
|
||||
DisposeViews();
|
||||
|
||||
// Resolve all pending GPU operations before allocating a new surface.
|
||||
background_canvas->flush();
|
||||
// Clipping the background canvas before drawing the picture recorders requires to
|
||||
// save and restore the clip context.
|
||||
SkAutoCanvasRestore save(background_canvas, /*doSave=*/true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user