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

Commit cd2f9a4

Browse files
committed
resolve comments
1 parent 7a9d5c3 commit cd2f9a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

shell/platform/fuchsia/flutter/flatland_connection.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,13 +319,13 @@ bool FlatlandConnection::MaybeRunInitialVsyncCallback(
319319
const fml::TimePoint& now,
320320
FireCallbackCallback& callback) {
321321
// Only sent maybe_run_initial_vsync once.
322-
if (threadsafe_state_.maybe_run_initial_vsync_callback_sent_) {
322+
if (threadsafe_state_.initial_vsync_callback_ran_) {
323323
return false;
324324
}
325325
TRACE_DURATION("flutter", "FlatlandConnection::MaybeRunInitialVsyncCallback");
326326
const auto frame_end = now + kInitialFlatlandVsyncOffset;
327327
threadsafe_state_.last_presentation_time_ = frame_end;
328-
threadsafe_state_.maybe_run_initial_vsync_callback_sent_ = true;
328+
threadsafe_state_.initial_vsync_callback_ran_ = true;
329329
callback(now, frame_end);
330330
return true;
331331
}

shell/platform/fuchsia/flutter/flatland_connection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class FlatlandConnection final {
137137
fml::TimePoint last_presentation_time_;
138138
FireCallbackCallback pending_fire_callback_;
139139
uint32_t present_credits_ = 1;
140-
bool maybe_run_initial_vsync_callback_sent_ = false;
140+
bool initial_vsync_callback_ran_ = false;
141141
} threadsafe_state_;
142142

143143
// Acquire fences sent to Flatland.

0 commit comments

Comments
 (0)