Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fuchsia: Don't send ViewportMetrics w/ 0 DPR #21392

Merged
merged 1 commit into from Oct 7, 2020

Conversation

arbreng
Copy link
Contributor

@arbreng arbreng commented Sep 24, 2020

Description

The Fuchsia embedder is sometimes sending 0 for the DPR when it shouldn't be. Recitfy this.

Related Issues

https://bugs.fuchsia.dev/p/fuchsia/issues/detail?id=60299

Tests

Added new test case in platform_view_unittests.

@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.

@dnfield
Copy link
Contributor

dnfield commented Sep 24, 2020

I think you should be able to add a test for this modeled on the platform_view_unittests and just drive the OnSenicEvent yourself. WDYT?

Copy link
Member

@chinmaygarde chinmaygarde left a comment

Choose a reason for hiding this comment

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

I like Dans idea of using the optionals as ivars.

@chinmaygarde
Copy link
Member

@arbreng Can we land this now please

@arbreng arbreng force-pushed the fuchsia-zero-dpr branch 5 times, most recently from 70b2379 to c49d965 Compare October 6, 2020 07:01
@arbreng arbreng merged commit d5dddf3 into flutter:master Oct 7, 2020
liyuqian added a commit that referenced this pull request Oct 7, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 7, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 8, 2020
gspencergoog pushed a commit to gspencergoog/engine that referenced this pull request Oct 20, 2020
@arbreng arbreng deleted the fuchsia-zero-dpr branch July 1, 2021 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants