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

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

Issue 2478383002: Remove SurfaceSequence from mus client code. (Closed)
Patch Set: Only cleanup. 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/window_tree.h ('k') | services/ui/ws/window_tree_client_unittest.cc » ('j') | 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 e4ad6630a5854f92e9733b038600869c49ff494d..9b6459540c5dd71d5ca6405db13a846b15f02e70 100644
--- a/services/ui/ws/window_tree.cc
+++ b/services/ui/ws/window_tree.cc
@@ -769,13 +769,8 @@ void WindowTree::ProcessWindowSurfaceChanged(ServerWindow* window,
return;
}
- ServerWindowCompositorFrameSinkManager* compositor_frame_sink_manager =
- window->GetOrCreateCompositorFrameSinkManager();
- cc::SurfaceSequence sequence =
- compositor_frame_sink_manager->CreateSurfaceSequence(
- mojom::CompositorFrameSinkType::DEFAULT);
- client()->OnWindowSurfaceChanged(client_window_id.id, surface_id, sequence,
- frame_size, device_scale_factor);
+ client()->OnWindowSurfaceChanged(client_window_id.id, surface_id, frame_size,
+ device_scale_factor);
}
void WindowTree::SendToPointerWatcher(const ui::Event& event,
@@ -1372,17 +1367,6 @@ void WindowTree::AttachCompositorFrameSink(
std::move(client));
}
-void WindowTree::OnWindowSurfaceDetached(Id transport_window_id,
- const cc::SurfaceSequence& sequence) {
- ServerWindow* window =
- GetWindowByClientId(ClientWindowId(transport_window_id));
- if (!window)
- return;
- std::vector<uint32_t> sequences({sequence.sequence});
- window_server_->GetDisplayCompositor()->ReturnSurfaceReferences(
- sequence.frame_sink_id, std::move(sequences));
-}
-
void WindowTree::SetWindowTextInputState(Id transport_window_id,
mojo::TextInputStatePtr state) {
ServerWindow* window =
« no previous file with comments | « services/ui/ws/window_tree.h ('k') | services/ui/ws/window_tree_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698