From 3af233d63b58c1f91d922a414e1c7e451186c024 Mon Sep 17 00:00:00 2001 From: Erik Gilling Date: Tue, 10 Oct 2017 13:57:22 -0700 Subject: [PATCH] Revert "Set ui, io, and gpu thread names. (#4182)" (#4193) This reverts commit fa46eca48333f41eae93217e61071e3a796fa80a. --- content_handler/app.cc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/content_handler/app.cc b/content_handler/app.cc index a55c73aeb..dbcb061d8 100644 --- a/content_handler/app.cc +++ b/content_handler/app.cc @@ -7,7 +7,6 @@ #include #include -#include "dart/runtime/include/dart_tools_api.h" #include "flutter/common/settings.h" #include "flutter/common/threads.h" #include "flutter/sky/engine/platform/fonts/fuchsia/FontCacheFuchsia.h" @@ -25,13 +24,6 @@ void QuitMessageLoop() { fsl::MessageLoop::GetCurrent()->QuitNow(); } -void SetThreadName(fxl::RefPtr runner, std::string name) { - runner->PostTask([name]() { - zx::thread::self().set_property(ZX_PROP_NAME, name.c_str(), name.size()); - Dart_SetThreadName(name.c_str()); - }); -} - std::string GetLabelFromURL(const std::string& url) { size_t last_slash = url.rfind('/'); if (last_slash == std::string::npos || last_slash + 1 == url.length()) @@ -58,10 +50,6 @@ App::App() { auto gpu_task_runner = gpu_thread_->TaskRunner(); auto io_task_runner = io_thread_->TaskRunner(); - SetThreadName(ui_task_runner, "ui"); - SetThreadName(gpu_task_runner, "gpu"); - SetThreadName(io_task_runner, "io"); - // Notice that the Platform and UI threads are actually the same. blink::Threads::Set(blink::Threads(ui_task_runner, // Platform gpu_task_runner, // GPU -- GitLab