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

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

Issue 2684623002: [WIP] Move ownership of PlatformDisplay from ws::Display to ws::WindowServer (Closed)
Patch Set: Created 3 years, 10 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 4a2cb7d666377afd90156bd1183b542e4877b8d9..14ae8110e4d51a3ddb72b78de338cfef09bbad11 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -549,6 +549,20 @@ bool WindowServer::GetFrameDecorationsForUser(
return window_manager_state->got_frame_decoration_values();
}
+void WindowServer::AddPlatformDisplay(
+ std::unique_ptr<PlatformDisplay> platform_display) {
+ platform_displays_.insert(std::move(platform_display));
+}
+
+void WindowServer::RemovePlatformDisplay(PlatformDisplay* platform_display) {
+ for (auto& pd : platform_displays_) {
+ if (pd.get() == platform_display) {
+ platform_displays_.erase(pd);
+ break;
+ }
+ }
+}
+
bool WindowServer::GetAndClearInFlightWindowManagerChange(
uint32_t window_manager_change_id,
InFlightWindowManagerChange* change) {
« 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