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) { |