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

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

Issue 2875753002: Implement aura::WindowPortMus::CreateCompositorFrameSink() (Closed)
Patch Set: Fix unittests Created 3 years, 7 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
Index: services/ui/ws/window_tree.cc
diff --git a/services/ui/ws/window_tree.cc b/services/ui/ws/window_tree.cc
index c758775cab2b80b2acbcc755c00077f7d023413a..823df3346f5647fd58cd9145709d319ce0ed26eb 100644
--- a/services/ui/ws/window_tree.cc
+++ b/services/ui/ws/window_tree.cc
@@ -961,14 +961,9 @@ void WindowTree::ProcessTransientWindowRemoved(
void WindowTree::ProcessWindowSurfaceChanged(
ServerWindow* window,
const cc::SurfaceInfo& surface_info) {
- ServerWindow* parent_window = window->parent();
- ClientWindowId client_window_id, parent_client_window_id;
- if (!IsWindowKnown(window, &client_window_id) ||
- !IsWindowKnown(parent_window, &parent_client_window_id) ||
- !created_window_map_.count(parent_window->id())) {
+ ClientWindowId client_window_id;
+ if (!IsWindowKnown(window, &client_window_id))
sky 2017/05/26 23:14:18 This means for embed points you send the change to
Peng 2017/05/30 19:46:27 For the embed points, we only call this function o
return;
- }
-
client()->OnWindowSurfaceChanged(client_window_id.id, surface_info);
}

Powered by Google App Engine
This is Rietveld 408576698