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

Unified Diff: cc/surfaces/compositor_frame_sink_support.cc

Issue 2711913006: Move FrameSink hierarchy registration to DisplayCompositor interface (Closed)
Patch Set: Fix mojom Formatting Created 3 years, 10 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
Index: cc/surfaces/compositor_frame_sink_support.cc
diff --git a/cc/surfaces/compositor_frame_sink_support.cc b/cc/surfaces/compositor_frame_sink_support.cc
index 6cb2414b1cdd324ec23d10e84aea187455dab3d8..96508cd305d7d4c0cd6a4ab86b2e83956407ebaa 100644
--- a/cc/surfaces/compositor_frame_sink_support.cc
+++ b/cc/surfaces/compositor_frame_sink_support.cc
@@ -50,11 +50,6 @@ CompositorFrameSinkSupport::~CompositorFrameSinkSupport() {
reference_tracker_.current_surface_id().is_valid())
RemoveTopLevelRootReference(reference_tracker_.current_surface_id());
- for (auto& child_frame_sink_id : child_frame_sinks_) {
- DCHECK(child_frame_sink_id.is_valid());
- surface_manager_->UnregisterFrameSinkHierarchy(frame_sink_id_,
- child_frame_sink_id);
- }
// SurfaceFactory's destructor will attempt to return resources which will
// call back into here and access |client_| so we should destroy
// |surface_factory_|'s resources early on.
@@ -152,23 +147,6 @@ void CompositorFrameSinkSupport::DidReceiveCompositorFrameAck() {
}
}
-void CompositorFrameSinkSupport::AddChildFrameSink(
- const FrameSinkId& child_frame_sink_id) {
- child_frame_sinks_.insert(child_frame_sink_id);
- surface_manager_->RegisterFrameSinkHierarchy(frame_sink_id_,
- child_frame_sink_id);
-}
-
-void CompositorFrameSinkSupport::RemoveChildFrameSink(
- const FrameSinkId& child_frame_sink_id) {
- auto it = child_frame_sinks_.find(child_frame_sink_id);
- DCHECK(it != child_frame_sinks_.end());
- DCHECK(it->is_valid());
- surface_manager_->UnregisterFrameSinkHierarchy(frame_sink_id_,
- child_frame_sink_id);
- child_frame_sinks_.erase(it);
-}
-
void CompositorFrameSinkSupport::ForceReclaimResources() {
surface_factory_.ClearSurface();
}
« no previous file with comments | « cc/surfaces/compositor_frame_sink_support.h ('k') | components/display_compositor/gpu_compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698