This repository was archived by the owner on Feb 25, 2025. It is now read-only.
[Windows] Expose channel buffers 'resize' and 'overflow' control commands exposed by the control channel.#47158
Merged
auto-submit[bot] merged 6 commits intoflutter:mainfrom Dec 14, 2023
Conversation
loic-sharma
reviewed
Oct 26, 2023
shell/platform/common/client_wrapper/basic_message_channel_unittests.cc
Outdated
Show resolved
Hide resolved
loic-sharma
reviewed
Oct 26, 2023
shell/platform/common/client_wrapper/include/flutter/method_channel.h
Outdated
Show resolved
Hide resolved
loic-sharma
reviewed
Oct 26, 2023
shell/platform/common/client_wrapper/include/flutter/basic_message_channel.h
Outdated
Show resolved
Hide resolved
loic-sharma
reviewed
Oct 26, 2023
5eb2181 to
d7510bf
Compare
stuartmorgan-g
suggested changes
Nov 2, 2023
shell/platform/common/client_wrapper/basic_message_channel_unittests.cc
Outdated
Show resolved
Hide resolved
shell/platform/common/client_wrapper/include/flutter/basic_message_channel.h
Outdated
Show resolved
Hide resolved
shell/platform/common/client_wrapper/include/flutter/basic_message_channel.h
Outdated
Show resolved
Hide resolved
shell/platform/common/client_wrapper/include/flutter/method_channel.h
Outdated
Show resolved
Hide resolved
shell/platform/common/client_wrapper/include/flutter/method_channel.h
Outdated
Show resolved
Hide resolved
9782c71 to
69e56a1
Compare
bleroux
commented
Nov 9, 2023
shell/platform/common/client_wrapper/include/flutter/method_channel.h
Outdated
Show resolved
Hide resolved
stuartmorgan-g
suggested changes
Nov 10, 2023
shell/platform/common/client_wrapper/include/flutter/method_channel.h
Outdated
Show resolved
Hide resolved
shell/platform/common/client_wrapper/include/flutter/method_channel.h
Outdated
Show resolved
Hide resolved
26cb681 to
c0e81b2
Compare
Contributor
|
Friendly ping @stuartmorgan it looks like this needs another review. |
stuartmorgan-g
suggested changes
Nov 30, 2023
shell/platform/common/client_wrapper/include/flutter/method_channel.h
Outdated
Show resolved
Hide resolved
shell/platform/common/client_wrapper/include/flutter/method_channel.h
Outdated
Show resolved
Hide resolved
2 tasks
Contributor
Author
|
Thanks for the feedback. I will pursue this work in two weeks (I won't have access to my Windows setup until December 11th). |
c0e81b2 to
0c1609b
Compare
stuartmorgan-g
suggested changes
Dec 13, 2023
|
|
||
| static constexpr char kControlChannelName[] = "dev.flutter/channel-buffers"; | ||
| static constexpr char kResizeMethod[] = "resize"; | ||
| static constexpr char kOverflowMethod[] = "overflow"; |
Contributor
There was a problem hiding this comment.
These three lines should be in an anonymous namespace (and thus don't need static to have internal linkage), rather than the internal namespace, since they don't need to be referenced outside of this file.
| // Adjusts the number of messages that will get buffered when sending messages | ||
| // to channels that aren't fully set up yet. For example, the engine isn't | ||
| // running yet or the channel's message handler isn't set up on the Dart side | ||
| // yet. |
Contributor
There was a problem hiding this comment.
Here and below: per the style guide, declaration comments belong at the declaration point (which is the header), not the definition point. That's true even for things that not intended for general use, like internal-namespaced functions or private class methods.
| namespace flutter { | ||
|
|
||
| namespace internal { | ||
| // Internal helpers functions used by BasicMessageChannel and MethodChannel. |
1ed71eb to
c6e9fe9
Compare
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Dec 14, 2023
…rol commands exposed by the control channel. (flutter/engine#47158)
auto-submit bot
pushed a commit
to flutter/flutter
that referenced
this pull request
Dec 14, 2023
flutter/engine@caf3327...a565cea 2023-12-14 [email protected] [Windows] Expose channel buffers 'resize' and 'overflow' control commands exposed by the control channel. (flutter/engine#47158) 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
Closed
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds two helper functions to invoke the 'resize' and 'overflow' commands exposed by the control channel.
See:
engine/lib/ui/channel_buffers.dart
Lines 302 to 309 in 93e8901
Implementation based on the discussion from #46998.
Related Issue
Windows implementation for flutter/flutter#132386
Tests
Adds 4 tests.