Skip to content

Commit

Permalink
Fix Windows build. (flutter#8336)
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmaygarde authored Mar 27, 2019
1 parent 6d8b836 commit 6800245
Showing 1 changed file with 10 additions and 8 deletions.
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

0 comments on commit 6800245

Please sign in to comment.