Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc

Issue 2249413004: services/ui: Allow injecting the IO thread task runner for gpu channel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.cc » ('j') | services/ui/public/cpp/gpu_service.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc
diff --git a/chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc b/chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc
index d897d5de24938f6b1903be7bd892aa4743ad336c..51f88793994053b99ebdb6cc9355630c5a853217 100644
--- a/chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc
+++ b/chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc
@@ -10,9 +10,11 @@
#if defined(USE_AURA)
#include "base/run_loop.h"
+#include "content/public/browser/browser_thread.h"
#include "content/public/common/mojo_shell_connection.h"
#include "services/shell/public/cpp/connector.h"
#include "services/shell/runner/common/client_util.h"
+#include "services/ui/public/cpp/gpu_service.h"
#include "services/ui/public/cpp/input_devices/input_device_client.h"
#include "services/ui/public/interfaces/input_devices/input_device_server.mojom.h"
#include "ui/display/screen.h"
@@ -65,6 +67,9 @@ void ChromeBrowserMainExtraPartsViews::MojoShellConnectionStarted(
window_manager_connection_ = views::WindowManagerConnection::Create(
connection->GetConnector(), connection->GetIdentity());
+ window_manager_connection_->gpu_service()->SetIOThreadTaskRunner(
+ content::BrowserThread::GetTaskRunnerForThread(
+ content::BrowserThread::IO));
}
#endif // defined(USE_AURA)
}
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.cc » ('j') | services/ui/public/cpp/gpu_service.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698