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] Rename params and add comments to FlatlandConnection #40941

Merged
merged 1 commit into from Apr 5, 2023

Conversation

uysalere
Copy link
Contributor

@uysalere uysalere commented Apr 5, 2023

This CL renames params and adds comments to FlatlandConnection to clarify behavior.

Bug: fxb/123838

@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 (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

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

@@ -86,26 +86,26 @@ void FlatlandConnection::DoPresent() {

// This method is called from the UI thread.
void FlatlandConnection::AwaitVsync(FireCallbackCallback callback) {
const fml::TimePoint now = fml::TimePoint::Now();
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a comment explaining why you moved this here?

Since it's outside of the mutex, we could wait for some time inside of the mutex lock before executing the code below. At that point the "now" variable wouldnt be "now" anymore - it would represent some time in the past.

Was that your intention here?

Copy link
Contributor

@arbreng arbreng left a comment

Choose a reason for hiding this comment

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

LGTM after either explaining the moved "now" variable or moving it back

This CL renames params and adds comments to FlatlandConnection to
clarify behavior.

Bug: fxb/123838
@uysalere uysalere force-pushed the comments-to-flatland-connection branch from 671daaf to cc1fd6b Compare April 5, 2023 20:34
@uysalere uysalere merged commit c78ef3b into flutter:main Apr 5, 2023
37 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants