-
Notifications
You must be signed in to change notification settings - Fork 6k
[Windows] Expose channel buffers 'resize' and 'overflow' control commands exposed by the control channel. #47158
[Windows] Expose channel buffers 'resize' and 'overflow' control commands exposed by the control channel. #47158
Conversation
shell/platform/common/client_wrapper/basic_message_channel_unittests.cc
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/basic_message_channel.h
Outdated
Show resolved
Hide resolved
5eb2181
to
d7510bf
Compare
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
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
shell/platform/common/client_wrapper/include/flutter/method_channel.h
Outdated
Show resolved
Hide resolved
26cb681
to
c0e81b2
Compare
Friendly ping @stuartmorgan it looks like this needs another review. |
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
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
|
||
static constexpr char kControlChannelName[] = "dev.flutter/channel-buffers"; | ||
static constexpr char kResizeMethod[] = "resize"; | ||
static constexpr char kOverflowMethod[] = "overflow"; |
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.
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. |
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.
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.
@@ -14,6 +14,17 @@ | |||
|
|||
namespace flutter { | |||
|
|||
namespace internal { | |||
// Internal helpers functions used by BasicMessageChannel and MethodChannel. |
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.
Nit: helper
1ed71eb
to
c6e9fe9
Compare
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, thanks!
…ntrol commands exposed by the control channel. (flutter/engine#47158)
…140163) 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
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.