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

Commit d13ad26

Browse files
authored
[Shell] Update stale comments after multi-view (#39298)
1 parent 5c83e6e commit d13ad26

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

runtime/platform_data.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,18 @@
1414
namespace flutter {
1515

1616
//------------------------------------------------------------------------------
17-
/// The struct of platform-specific data used for initializing ui.Window.
17+
/// The struct of platform-specific data used for initializing
18+
/// ui.PlatformDispatcher.
1819
///
19-
/// framework may request data from ui.Window before platform is properly
20-
/// configured. Engine this struct to set the desired default value for
21-
/// ui.Window when creating Shell before platform is ready to send the real
20+
/// The framework may request data from ui.PlatformDispatcher before the
21+
/// platform is properly configured. When creating the Shell, the engine sets
22+
/// this struct to default values until the platform is ready to send the real
2223
/// data.
2324
///
2425
/// See also:
2526
///
2627
/// * flutter::Shell::Create, which takes a platform_data to initialize the
27-
/// ui.Window attached to it.
28+
/// ui.PlatformDispatcher attached to it.
2829
struct PlatformData {
2930
PlatformData();
3031

shell/common/shell.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ class Shell final : public PlatformView::Delegate,
452452
std::atomic<bool> needs_report_timings_{false};
453453

454454
// Whether there's a task scheduled to report the timings to Dart through
455-
// ui.Window.onReportTimings.
455+
// ui.PlatformDispatcher.onReportTimings.
456456
bool frame_timings_report_scheduled_ = false;
457457

458458
// Vector of FrameTiming::kCount * n timestamps for n frames whose timings

0 commit comments

Comments
 (0)