From 68002458f4762f14f99778a517e9665229c10dfb Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Wed, 27 Mar 2019 16:43:08 -0700 Subject: [PATCH] Fix Windows build. (#8336) --- .../platform/embedder/embedder_thread_host.cc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/shell/platform/embedder/embedder_thread_host.cc b/shell/platform/embedder/embedder_thread_host.cc index 648025ea5a317..925b596d8a18d 100644 --- a/shell/platform/embedder/embedder_thread_host.cc +++ b/shell/platform/embedder/embedder_thread_host.cc @@ -39,19 +39,21 @@ static fml::RefPtr 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(task_runner), - .task = task_baton, + // runner + reinterpret_cast(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); }};