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

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

Issue 2651843002: FrameGenerator should receive SurfaceInfo and use it in frame generation (Closed)
Patch Set: c Created 3 years, 11 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
« services/ui/ws/frame_generator.cc ('K') | « services/ui/ws/frame_generator.cc ('k') | no next file » | 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 0bf97ea295c503d7a332a5bc7456b6538e530a13..8ab1768ffe80896a3a36af3cade498e91a01662a 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -783,10 +783,11 @@ void WindowServer::OnSurfaceCreated(const cc::SurfaceInfo& surface_info) {
// FrameGenerator will add an appropriate reference for the new surface.
DCHECK(display_manager_->GetDisplayContaining(window));
- display_manager_->GetDisplayContaining(window)
- ->platform_display()
- ->GetFrameGenerator()
- ->OnSurfaceCreated(surface_info.id(), window);
+ auto display = display_manager_->GetDisplayContaining(window);
+ if (window == display->GetActiveRootWindow()) {
+ display->platform_display()->GetFrameGenerator()->OnSurfaceCreated(
+ surface_info);
+ }
// This is only used for testing to observe that a window has a
// CompositorFrame.
« services/ui/ws/frame_generator.cc ('K') | « services/ui/ws/frame_generator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698