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

[fuchsia][scenic] Reset the state of a PointerInjectorEndpoint on channel closure#35241

Merged
shivesh-ganju merged 1 commit intoflutter:mainfrom
shivesh-ganju:runner_test_branch
Aug 10, 2022
Merged

[fuchsia][scenic] Reset the state of a PointerInjectorEndpoint on channel closure#35241
shivesh-ganju merged 1 commit intoflutter:mainfrom
shivesh-ganju:runner_test_branch

Conversation

@shivesh-ganju
Copy link
Contributor

This CL resets the state including cleaning up the buffers whenever
a fuchsia.ui.pointerinjector.Device channel closes due to some error.

Test: flutter_runner_tests

@arbreng arbreng requested a review from akbiggs August 8, 2022 21:30
injection_in_flight_ = false;
registered_ = false;
std::queue<std::vector<fuchsia::ui::pointerinjector::Event>> empty;
std::swap(injector_events_, empty);
Copy link
Contributor

Choose a reason for hiding this comment

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

might be simpler to say
injector_events_ = {};

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

channel closure.

This CL resets the state including cleaning up the buffers whenever
a fuchsia.ui.pointerinjector.Device channel closes due to some error.

Test: flutter_runner_tests
Copy link
Contributor

@jaeheon jaeheon left a comment

Choose a reason for hiding this comment

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

LGTM

@shivesh-ganju shivesh-ganju merged commit d8169a4 into flutter:main Aug 10, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 10, 2022
emilyabest pushed a commit to emilyabest/engine that referenced this pull request Aug 12, 2022
…utter#35241)

channel closure.

This CL resets the state including cleaning up the buffers whenever
a fuchsia.ui.pointerinjector.Device channel closes due to some error.

Test: flutter_runner_tests
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.

3 participants