-
Notifications
You must be signed in to change notification settings - Fork 6k
[Windows] Add ID to views #50788
[Windows] Add ID to views #50788
Conversation
cbracken
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.
| return std::chrono::nanoseconds(interval); | ||
| } | ||
|
|
||
| FlutterWindowsView* FlutterWindowsEngine::view(FlutterViewId view_id) const { |
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.
Should we add a unit test for this now to test the implicit view ID and make sure we update everything in sync when removing that assumption?
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.
What do you have in mind that we need to be kept in sync? Would the test verify that the engine crashes if a non-zero ID is given?
Personally I think it'd be okay without this test. If I'm understanding you correctly, all our existing tests effectively verify this by not crashing. Please let me know if you feel strongly about this though!
e2b8a1c to
ec6b484
Compare
…143791) flutter/engine@1ae2c10...cb12a8c 2024-02-20 [email protected] [Windows] Add ID to views (flutter/engine#50788) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Adds an ID to a view:
FlutterWindowsViewnow has a IDFlutterWindowsEngine::view(...)accessor now requires a view ID parameterThis is a refactoring with no semantic changes.
Part of flutter/flutter#143765
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.