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

Unified Diff: cc/surfaces/surface_manager.cc

Issue 2897673002: Return resources immediately after a Surface is destroyed (Closed)
Patch Set: Check aggregator_ 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
« no previous file with comments | « cc/surfaces/display.cc ('k') | cc/surfaces/surface_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_manager.cc
diff --git a/cc/surfaces/surface_manager.cc b/cc/surfaces/surface_manager.cc
index cbdb78c5ea4a061887bcfc14fb2f627904fafd3f..0eb2b210619a38d8fb72cd403d2868ef4621946f 100644
--- a/cc/surfaces/surface_manager.cc
+++ b/cc/surfaces/surface_manager.cc
@@ -494,6 +494,8 @@ void SurfaceManager::SurfaceDependenciesChanged(
}
void SurfaceManager::SurfaceDiscarded(Surface* surface) {
+ for (auto& observer : observer_list_)
+ observer.OnSurfaceDiscarded(surface->surface_id());
if (dependency_tracker_)
dependency_tracker_->OnSurfaceDiscarded(surface);
}
« no previous file with comments | « cc/surfaces/display.cc ('k') | cc/surfaces/surface_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698