Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@chinmaygarde
Copy link
Member

Acquires fewer locks and doesn't throw GL errors when setting labels on
create-on-bind resources that haven't been bound yet. In such cases, the
label will be set on the next reaction.

Acquires fewer locks and doesn't throw GL errors when setting labels on
create-on-bind resources that haven't been bound yet. In such cases, the
label will be set on the next reaction.
@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.

@chinmaygarde
Copy link
Member Author

Handle management in the reactor is now fully thread safe and setting debug labels doesn't need a check to ensure that create-on-bind resources have actually been bound before.

OpenGL errors are now back to being fatal errors instead of merely logging.

Copy link
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

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

Are there any tests that can be written for this change, or is it a pure refactor?

@chinmaygarde
Copy link
Member Author

Right now, it is just a pure refactor. Though just a unit-tests harness for the reactor and other components in the ESn backend makes sense. These components just don't need to exist in Metal and so parameterizing the existing tests for Open GL probably doesn't tickle these in a way I'd consider thorough. I'll add a separate harness for just for ES.

@chinmaygarde chinmaygarde merged commit 97e81c8 into flutter:main May 25, 2022
@chinmaygarde chinmaygarde deleted the better_handle_table branch May 25, 2022 18:38
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 25, 2022
houhuayong pushed a commit to houhuayong/engine that referenced this pull request Jun 21, 2022
…t. (flutter#33598)

Acquires fewer locks and doesn't throw GL errors when setting labels on
create-on-bind resources that haven't been bound yet. In such cases, the
label will be set on the next reaction.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants