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

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
« no previous file with comments | « services/ui/ws/test_utils.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 b41585f4558de45e336d873b6eb04cab355be8c7..c4758a510b24ec0e3536e4e075a8c011f7ce3970 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -787,10 +787,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.
« no previous file with comments | « services/ui/ws/test_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698