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

Unified Diff: services/ui/ws/frame_generator.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/default_access_policy.cc ('k') | services/ui/ws/frame_generator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/frame_generator.cc
diff --git a/services/ui/ws/frame_generator.cc b/services/ui/ws/frame_generator.cc
index 7f8e788dd8c0b946aa06834fc6912059e96685ce..bb56571e1bd0b0126c3eb3ff7096fbee364a47af 100644
--- a/services/ui/ws/frame_generator.cc
+++ b/services/ui/ws/frame_generator.cc
@@ -163,8 +163,7 @@ void FrameGenerator::DrawWindow(cc::RenderPass* pass, ServerWindow* window) {
return;
cc::SurfaceId default_surface_id =
- window->compositor_frame_sink_manager()->GetLatestSurfaceId(
- mojom::CompositorFrameSinkType::DEFAULT);
+ window->compositor_frame_sink_manager()->GetLatestSurfaceId();
if (!default_surface_id.is_valid())
return;
@@ -197,8 +196,7 @@ cc::SurfaceId FrameGenerator::FindParentSurfaceId(ServerWindow* window) {
// The root window holds the parent SurfaceId. This SurfaceId will have an
// invalid LocalFrameId before FrameGenerator has submitted a CompositorFrame.
// After the first frame is submitted it will always be a valid SurfaceId.
- return root_window_->compositor_frame_sink_manager()->GetLatestSurfaceId(
- mojom::CompositorFrameSinkType::DEFAULT);
+ return root_window_->compositor_frame_sink_manager()->GetLatestSurfaceId();
}
void FrameGenerator::AddSurfaceReference(const cc::SurfaceId& parent_id,
@@ -292,17 +290,10 @@ void FrameGenerator::OnWindowDestroying(ServerWindow* window) {
// ServerWindowCompositorFrameSinkManager.
DCHECK(compositor_frame_sink_manager);
- cc::SurfaceId default_surface_id =
- window->compositor_frame_sink_manager()->GetLatestSurfaceId(
- mojom::CompositorFrameSinkType::DEFAULT);
- if (default_surface_id.is_valid())
- RemoveFrameSinkReference(default_surface_id.frame_sink_id());
-
- cc::SurfaceId underlay_surface_id =
- window->compositor_frame_sink_manager()->GetLatestSurfaceId(
- mojom::CompositorFrameSinkType::UNDERLAY);
- if (underlay_surface_id.is_valid())
- RemoveFrameSinkReference(underlay_surface_id.frame_sink_id());
+ cc::SurfaceId surface_id =
+ window->compositor_frame_sink_manager()->GetLatestSurfaceId();
+ if (surface_id.is_valid())
+ RemoveFrameSinkReference(surface_id.frame_sink_id());
}
} // namespace ws
« no previous file with comments | « services/ui/ws/default_access_policy.cc ('k') | services/ui/ws/frame_generator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698