Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions shell/platform/embedder/embedder_thread_host.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,21 @@ static fml::RefPtr<EmbedderTaskRunner> CreateEmbedderTaskRunner(
description->runs_task_on_current_thread_callback;

EmbedderTaskRunner::DispatchTable task_runner_dispatch_table = {
.post_task_callback = [post_task_callback_c, user_data](
EmbedderTaskRunner* task_runner,
uint64_t task_baton,
fml::TimePoint target_time) -> void {
// .post_task_callback
[post_task_callback_c, user_data](EmbedderTaskRunner* task_runner,
uint64_t task_baton,
fml::TimePoint target_time) -> void {
FlutterTask task = {
.runner = reinterpret_cast<FlutterTaskRunner>(task_runner),
.task = task_baton,
// runner
reinterpret_cast<FlutterTaskRunner>(task_runner),
// task
task_baton,
};
post_task_callback_c(task, target_time.ToEpochDelta().ToNanoseconds(),
user_data);
},
.runs_task_on_current_thread_callback =
[runs_task_on_current_thread_callback_c, user_data]() -> bool {
// runs_task_on_current_thread_callback
[runs_task_on_current_thread_callback_c, user_data]() -> bool {
return runs_task_on_current_thread_callback_c(user_data);
}};

Expand Down