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

Unified Diff: services/ui/ws/window_tree.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_tree.h ('k') | services/ui/ws/window_tree_client_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_tree.cc
diff --git a/services/ui/ws/window_tree.cc b/services/ui/ws/window_tree.cc
index c6651fe2c1bf6dca5e5dab877c3146801f041b88..6721e2da09904bd189fe828aa07abb2e65a67c47 100644
--- a/services/ui/ws/window_tree.cc
+++ b/services/ui/ws/window_tree.cc
@@ -552,6 +552,13 @@ void WindowTree::AddActivationParent(const ClientWindowId& window_id) {
}
}
+void WindowTree::OnSetWindowBoundsResponse(
+ uint32_t change_id,
+ const gfx::Rect& bounds,
+ const cc::LocalSurfaceId& local_surface_id) {
+ client()->OnSetWindowBoundsResponse(change_id, bounds, local_surface_id);
+}
+
void WindowTree::OnChangeCompleted(uint32_t change_id, bool success) {
client()->OnChangeCompleted(change_id, success);
}
@@ -1086,6 +1093,7 @@ mojom::WindowDataPtr WindowTree::WindowToWindowData(
window_data->bounds = window->bounds();
window_data->properties = mojo::MapToUnorderedMap(window->properties());
window_data->visible = window->visible();
+ window_data->local_surface_id = window->current_local_surface_id();
return window_data;
}
@@ -2009,6 +2017,14 @@ void WindowTree::SetExtendedHitArea(Id window_id, const gfx::Insets& hit_area) {
window->set_extended_hit_test_region(hit_area);
}
+void WindowTree::WmSetBoundsResponse(
+ uint32_t change_id,
+ const gfx::Rect& bounds,
+ const cc::LocalSurfaceId& local_surface_id) {
+ window_server_->WindowManagerSetBoundsResponse(change_id, bounds,
+ local_surface_id);
+}
+
void WindowTree::WmResponse(uint32_t change_id, bool response) {
if (window_server_->in_move_loop() &&
window_server_->GetCurrentMoveLoopChangeId() == change_id) {
« no previous file with comments | « services/ui/ws/window_tree.h ('k') | services/ui/ws/window_tree_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698