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

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

Issue 2470143006: Remove dependency on SurfaceManager in FrameGenerator (Closed)
Patch Set: Created 4 years, 1 month 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/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_tree.cc
diff --git a/services/ui/ws/window_tree.cc b/services/ui/ws/window_tree.cc
index 5dbc6f330706a1adcc6b8a5b76c3e92d98829e7d..338cb2907d2a765685e182597fa4563ac620719d 100644
--- a/services/ui/ws/window_tree.cc
+++ b/services/ui/ws/window_tree.cc
@@ -1375,7 +1375,10 @@ void WindowTree::OnWindowSurfaceDetached(Id transport_window_id,
GetWindowByClientId(ClientWindowId(transport_window_id));
if (!window)
return;
- window_server_->GetDisplayCompositor()->ReturnSurfaceReference(sequence);
+ std::vector<uint32_t> sequences;
+ sequences.push_back(sequence.sequence);
kylechar 2016/11/04 15:53:51 Optional change: std::vector<uint32_t> sequences(
Fady Samuel 2016/11/04 17:17:06 Done.
+ window_server_->GetDisplayCompositor()->ReturnSurfaceReferences(
+ sequence.frame_sink_id, std::move(sequences));
}
void WindowTree::SetWindowTextInputState(Id transport_window_id,
« no previous file with comments | « services/ui/ws/frame_generator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698