Index: cc/surfaces/surface_aggregator.cc |
diff --git a/cc/surfaces/surface_aggregator.cc b/cc/surfaces/surface_aggregator.cc |
index 9115b74b8d61013dad5dc65fac336fcc8891580c..4c7e04ea4be8f45a9be958c1403c4f0e5cab053f 100644 |
--- a/cc/surfaces/surface_aggregator.cc |
+++ b/cc/surfaces/surface_aggregator.cc |
@@ -42,12 +42,10 @@ void MoveMatchingRequests( |
} // namespace |
-SurfaceAggregator::SurfaceAggregator(SurfaceAggregatorClient* client, |
- SurfaceManager* manager, |
+SurfaceAggregator::SurfaceAggregator(SurfaceManager* manager, |
ResourceProvider* provider, |
bool aggregate_only_damaged) |
- : client_(client), |
- manager_(manager), |
+ : manager_(manager), |
provider_(provider), |
next_render_pass_id_(1), |
aggregate_only_damaged_(aggregate_only_damaged), |
@@ -479,19 +477,9 @@ void SurfaceAggregator::ProcessAddedAndRemovedSurfaces() { |
Surface* surface_ptr = manager_->GetSurfaceForId(surface.first); |
if (surface_ptr) { |
surface_ptr->RunDrawCallbacks(SurfaceDrawStatus::DRAW_SKIPPED); |
- client_->RemoveSurface(surface_ptr); |
} |
} |
} |
- |
- for (const auto& surface : contained_surfaces_) { |
- if (!previous_contained_surfaces_.count(surface.first)) { |
- // Notify client of added surface. |
- Surface* surface_ptr = manager_->GetSurfaceForId(surface.first); |
- if (surface_ptr) |
- client_->AddSurface(surface_ptr); |
- } |
- } |
} |
// Walk the Surface tree from surface_id. Validate the resources of the current |