Skip to content

Conversation

@liyuqian
Copy link
Contributor

@liyuqian liyuqian commented Aug 20, 2019

This is the continuation of flutter/engine#11041 and #38574

This is not a breaking change as we're not removing onReportTimings API.
We're simply removing the use of it in our framework.

@fluttergithubbot fluttergithubbot added the framework flutter/packages/flutter repository. See also f: labels. label Aug 20, 2019
@liyuqian liyuqian changed the title [wip] Replace deprecated onReportTimings w/ frameTimings Replace deprecated onReportTimings w/ frameTimings Aug 20, 2019
@liyuqian liyuqian added c: performance Relates to speed or footprint issues (see "perf:" labels) and removed work in progress; do not review labels Aug 20, 2019
Copy link
Contributor

@devoncarew devoncarew left a comment

Choose a reason for hiding this comment

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

lgtm for the change; I would confirm whether this needs to follow the breaking change process before landing

@override
// use frameTimings. https://github.com/flutter/flutter/issues/38838
// ignore: deprecated_member_use
TimingsCallback get onReportTimings => _window.onReportTimings;
Copy link
Contributor

Choose a reason for hiding this comment

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

Do these changes need to go through the API breaking change process?

https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes

onReportTimings and TimingsCallback are very unlikely to have users, but we may want to email the announce list as part of this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the flutter_test/.../window.dart instead of lib/ui/window.dart. Removing this doesn't remove the onReportTimings API (as it's inherited from lib/ui/window.dart) so this is not a breaking change.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, sorry, I did think this was in a lib/ directory; nevermind re: the breaking change.

Copy link
Member

Choose a reason for hiding this comment

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

The TestWindow is part of the flutter_test api. So this may break somebody who was using tester.binding.window. onReportTimings in their test. I don't think that is very common, but it may still be worth to send a quick note?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Breaking Change email sent with the tracking issue: #39277

@liyuqian
Copy link
Contributor Author

@goderbauer : can you please double check that this is not a breaking change?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

c: performance Relates to speed or footprint issues (see "perf:" labels) framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants