-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Replace deprecated onReportTimings w/ frameTimings #38861
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
Conversation
d7634d7 to
8c2657d
Compare
8c2657d to
f6a5c0e
Compare
f6a5c0e to
485b889
Compare
devoncarew
left a comment
There was a problem hiding this 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; |
There was a problem hiding this comment.
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?
onReportTimings and TimingsCallback are very unlikely to have users, but we may want to email the announce list as part of this change.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
|
@goderbauer : can you please double check that this is not a breaking change? |
This is the continuation of flutter/engine#11041 and #38574
This is not a breaking change as we're not removing
onReportTimingsAPI.We're simply removing the use of it in our framework.