Skip to content

Instantly share code, notes, and snippets.

@chinmaygarde
Last active October 16, 2018 22:19
Show Gist options
  • Select an option

  • Save chinmaygarde/5b1b75016869163a20879d1bf058036c to your computer and use it in GitHub Desktop.

Select an option

Save chinmaygarde/5b1b75016869163a20879d1bf058036c to your computer and use it in GitHub Desktop.
diff --git a/shell/testing/tester_main.cc b/shell/testing/tester_main.cc
index 207e35301..1eb47637e 100644
--- a/shell/testing/tester_main.cc
+++ b/shell/testing/tester_main.cc
@@ -96,12 +96,16 @@ int RunTester(const blink::Settings& settings, bool run_forever) {
auto current_task_runner = fml::MessageLoop::GetCurrent().GetTaskRunner();
+ ThreadHost host("whatever", ThreadHost::Type::UI | ThreadHost::Type::GPU |
+ ThreadHost::Type::IO);
+
// Setup a single threaded test runner configuration.
- const blink::TaskRunners task_runners(thread_label, // dart thread label
- current_task_runner, // platform
- current_task_runner, // gpu
- current_task_runner, // ui
- current_task_runner // io
+ const blink::TaskRunners task_runners(
+ thread_label, // dart thread label
+ current_task_runner, // platform
+ host.gpu_thread->GetTaskRunner(), // gpu
+ host.ui_thread->GetTaskRunner(), // ui
+ host.io_thread->GetTaskRunner() // io
);
Shell::CreateCallback<PlatformView> on_create_platform_view =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment