Skip to content

Commit

Permalink
Revert "Fix Windows build. (flutter#8336)"
Browse files Browse the repository at this point in the history
This reverts commit 0199fd0.
  • Loading branch information
RBogie committed Apr 8, 2019
1 parent a49ad93 commit a5447fb
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions shell/platform/embedder/embedder_thread_host.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,19 @@ 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 a5447fb

Please sign in to comment.