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

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

Issue 2582823002: WIP: Surface Synchronization System
Patch Set: First cut propagating LocalSurfaceId when WindowTreeHost requests resize Created 3 years, 9 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') | services/ui/ws/window_tree.h » ('j') | 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 c893898437022868b74c20521f7dbce6ddb9775f..24e42ac9ba8852d5c33eb494e499b96fc42759dd 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -297,6 +297,20 @@ uint32_t WindowServer::GenerateWindowManagerChangeId(
return wm_change_id;
}
+void WindowServer::WindowManagerSetBoundsResponse(
+ uint32_t window_manager_change_id,
+ const gfx::Rect& bounds,
+ const cc::LocalSurfaceId& local_surface_id) {
+ auto iter = in_flight_wm_change_map_.find(window_manager_change_id);
+ if (iter == in_flight_wm_change_map_.end())
+ return;
+
+ InFlightWindowManagerChange change(iter->second);
+ WindowTree* tree = GetTreeWithId(change.client_id);
+ tree->OnSetWindowBoundsResponse(change.client_change_id, bounds,
+ local_surface_id);
+}
+
void WindowServer::WindowManagerChangeCompleted(
uint32_t window_manager_change_id,
bool success) {
« no previous file with comments | « services/ui/ws/window_server.h ('k') | services/ui/ws/window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698