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

Commit eabd8ea

Browse files
authored
Update flutter_windows_view.cc
Add more context around resizing.
1 parent ace3947 commit eabd8ea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

shell/platform/windows/flutter_windows_view.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
namespace flutter {
1010

1111
/// Returns true if the surface will be updated as part of the resize process.
12+
///
13+
/// This is called on window resize to determine if the platform thread needs
14+
/// to be blocked until the frame with the right size has been rendered. It should
15+
/// be kept in-sync with how the engine deals with a new surface request as seen in
16+
/// `CreateOrUpdateSurface` in `GPUSurfaceGL`.
1217
static bool SurfaceWillUpdate(size_t cur_width,
1318
size_t cur_height,
1419
size_t target_width,

0 commit comments

Comments
 (0)