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

[macOS] Disable synchronous resizing until a frame is produced #22457

Merged
merged 1 commit into from
Nov 12, 2020

Conversation

knopp
Copy link
Member

@knopp knopp commented Nov 11, 2020

Instead of the synchronousResizing flag which in some cases seems to be set too early, synchronous resizing is postponed until framework produces a frame so ResizeSynchronizer knows for sure that the engine is up and running.

Related Issues

Fixes: flutter/flutter#70318

Tests

I added the following tests:

Replace this with a list of the tests that you added as part of this PR. A
change in behaviour with no test covering it will likely get reverted
accidentally sooner or later. PRs must include tests for all
changed/updated/fixed behaviors. See testing the engine for instructions on
writing and running engine tests.

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the contributor guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I read and followed the C++, Objective-C, Java style guides for the engine.
  • I read the tree hygiene wiki page, which explains my responsibilities.
  • I updated/added relevant documentation.
  • All existing and new tests are passing.
  • I am willing to follow-up on review comments in a timely manner.

Reviewer Checklist

Breaking Change

Did any tests fail when you ran them? Please read handling breaking changes.

Instead of synchronousResizing flag which in some cases seems to be set too early, synchronous resizing is postponed until framework produces a frame so ResizeSynchronizer knows for sure that the engine is up and running.
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Copy link
Contributor

@iskakaushik iskakaushik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tvolkert
Copy link
Contributor

@knopp thanks for the quick fix! I'm gonna merge this since it's green.

@tvolkert tvolkert merged commit 8ceb3ed into flutter:master Nov 12, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 13, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 13, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 13, 2020
pcsosinski pushed a commit to pcsosinski/engine that referenced this pull request Nov 13, 2020
Instead of synchronousResizing flag which in some cases seems to be set too early, synchronous resizing is postponed until framework produces a frame so ResizeSynchronizer knows for sure that the engine is up and running.
pcsosinski pushed a commit that referenced this pull request Nov 13, 2020
* Update 1.24 engine to use Dart 2.12.0-29.7.beta

* Default to 2.7 when generating the package config (#22469)

For flutter/flutter#70349

* Disable synchronous resizing until a frame is produced (#22457)

Instead of synchronousResizing flag which in some cases seems to be set too early, synchronous resizing is postponed until framework produces a frame so ResizeSynchronizer knows for sure that the engine is up and running.

* update license file for Dart 2.12.0-29.7.beta

Co-authored-by: Zachary Anderson <zanderso@users.noreply.github.com>
Co-authored-by: Matej Knopp <matej.knopp@gmail.com>
chaselatta pushed a commit to chaselatta/engine that referenced this pull request Nov 30, 2020
Instead of synchronousResizing flag which in some cases seems to be set too early, synchronous resizing is postponed until framework produces a frame so ResizeSynchronizer knows for sure that the engine is up and running.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to run on MacOS device from IntelliJ - "Waiting for macOS to report its views"
4 participants