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

Unified Diff: cc/surfaces/surface_manager.cc

Issue 2918883002: cc: Get rid of SurfaceDestroyed and use SurfaceDiscarded instead
Patch Set: Updated Created 3 years, 7 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/surface_manager.cc
diff --git a/cc/surfaces/surface_manager.cc b/cc/surfaces/surface_manager.cc
index 3972a9d198688acfbaad54f80c613cc22780fa2c..b6fec0c8793fe7ab6a06f75219bb47b311b74a34 100644
--- a/cc/surfaces/surface_manager.cc
+++ b/cc/surfaces/surface_manager.cc
@@ -118,8 +118,6 @@ std::unique_ptr<Surface> SurfaceManager::CreateSurface(
void SurfaceManager::DestroySurface(std::unique_ptr<Surface> surface) {
DCHECK(thread_checker_.CalledOnValidThread());
surface->set_destroyed(true);
- for (auto& observer : observer_list_)
- observer.OnSurfaceDestroyed(surface->surface_id());
surfaces_to_destroy_.push_back(std::move(surface));
GarbageCollectSurfaces();
}

Powered by Google App Engine
This is Rietveld 408576698