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

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

Issue 2617403003: Mus: Remove CompositorFrameSinkType (Closed)
Patch Set: Fix some unit tests 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/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 09f622233ca0a8d1048edaf6d41fe910c30f1a0e..4abe468092909ef7d03cdc6413366c6de8f17981 100644
--- a/services/ui/ws/window_tree.cc
+++ b/services/ui/ws/window_tree.cc
@@ -1415,19 +1415,18 @@ void WindowTree::SetWindowOpacity(uint32_t change_id,
void WindowTree::AttachCompositorFrameSink(
Id transport_window_id,
- mojom::CompositorFrameSinkType type,
cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink,
cc::mojom::MojoCompositorFrameSinkClientPtr client) {
ServerWindow* window =
GetWindowByClientId(ClientWindowId(transport_window_id));
const bool success =
- window && access_policy_->CanSetWindowCompositorFrameSink(window, type);
+ window && access_policy_->CanSetWindowCompositorFrameSink(window);
if (!success) {
DVLOG(1) << "request to AttachCompositorFrameSink failed";
return;
}
- window->CreateOffscreenCompositorFrameSink(
- type, std::move(compositor_frame_sink), std::move(client));
+ window->CreateOffscreenCompositorFrameSink(std::move(compositor_frame_sink),
+ std::move(client));
}
void WindowTree::SetWindowTextInputState(Id transport_window_id,
« 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