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

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

Issue 2875753002: Implement aura::WindowPortMus::CreateCompositorFrameSink() (Closed)
Patch Set: Address review issues. Created 3 years, 6 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 f6b07565db20bd0055f4b70277c7fd4e11e15e6f..42fb22f521768b94008d6e587a873cc46c924717 100644
--- a/services/ui/ws/window_tree.cc
+++ b/services/ui/ws/window_tree.cc
@@ -963,14 +963,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))
return;
- }
-
client()->OnWindowSurfaceChanged(client_window_id.id, surface_info);
}

Powered by Google App Engine
This is Rietveld 408576698