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

Commit

Permalink
[Shell] Update stale comments after multi-view (#39298)
Browse files Browse the repository at this point in the history
  • Loading branch information
loic-sharma authored Jan 31, 2023
1 parent 5c83e6e commit d13ad26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions runtime/platform_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@
namespace flutter {

//------------------------------------------------------------------------------
/// The struct of platform-specific data used for initializing ui.Window.
/// The struct of platform-specific data used for initializing
/// ui.PlatformDispatcher.
///
/// framework may request data from ui.Window before platform is properly
/// configured. Engine this struct to set the desired default value for
/// ui.Window when creating Shell before platform is ready to send the real
/// The framework may request data from ui.PlatformDispatcher before the
/// platform is properly configured. When creating the Shell, the engine sets
/// this struct to default values until the platform is ready to send the real
/// data.
///
/// See also:
///
/// * flutter::Shell::Create, which takes a platform_data to initialize the
/// ui.Window attached to it.
/// ui.PlatformDispatcher attached to it.
struct PlatformData {
PlatformData();

Expand Down
2 changes: 1 addition & 1 deletion shell/common/shell.h
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ class Shell final : public PlatformView::Delegate,
std::atomic<bool> needs_report_timings_{false};

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

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

0 comments on commit d13ad26

Please sign in to comment.