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

Unified Diff: services/ui/ws/window_server.cc

Issue 2281583003: services/ui: Split GpuServiceInternal into gpu vs. ws pieces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DONE_2016.08.24_mus-ws-gpu-refactor
Patch Set: tot merge 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 | « services/ui/ws/window_server.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_server.cc
diff --git a/services/ui/ws/window_server.cc b/services/ui/ws/window_server.cc
index 02d56c46f37815d4b110ef4a306deb1d1e64fc5e..cf1f62094a075df020d9e48bbd57a91f6c517bde 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -14,6 +14,7 @@
#include "services/ui/ws/display.h"
#include "services/ui/ws/display_binding.h"
#include "services/ui/ws/display_manager.h"
+#include "services/ui/ws/gpu_service_proxy.h"
#include "services/ui/ws/operation.h"
#include "services/ui/ws/server_window.h"
#include "services/ui/ws/user_activity_monitor.h"
@@ -45,6 +46,7 @@ WindowServer::WindowServer(WindowServerDelegate* delegate)
current_operation_(nullptr),
in_destructor_(false),
next_wm_change_id_(0),
+ gpu_proxy_(new GpuServiceProxy(this)),
window_manager_window_tree_factory_set_(this, &user_id_tracker_) {
user_id_tracker_.AddObserver(this);
OnUserIdAdded(user_id_tracker_.active_id());
@@ -764,6 +766,13 @@ void WindowServer::OnTransientWindowRemoved(ServerWindow* window,
}
}
+void WindowServer::OnGpuChannelEstablished(
+ scoped_refptr<gpu::GpuChannelHost> gpu_channel) {
+ const std::set<Display*>& displays = display_manager()->displays();
+ for (auto* display : displays)
+ display->platform_display()->OnGpuChannelEstablished(gpu_channel);
+}
+
void WindowServer::OnActiveUserIdChanged(const UserId& previously_active_id,
const UserId& active_id) {
if (IsUserInHighContrastMode(previously_active_id) ==
« no previous file with comments | « services/ui/ws/window_server.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698