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

Unified Diff: cc/surfaces/display.cc

Issue 800133002: Release resources from SurfaceAggregator when new frame arrives. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « no previous file | cc/surfaces/surface_aggregator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display.cc
diff --git a/cc/surfaces/display.cc b/cc/surfaces/display.cc
index 3aba574846c1e2eb0a2c88b4588d25ec24cf9d77..8833037c5ecbd822fc554b6697657c59b474739e 100644
--- a/cc/surfaces/display.cc
+++ b/cc/surfaces/display.cc
@@ -169,8 +169,11 @@ void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) {
}
void Display::OnSurfaceDamaged(SurfaceId surface) {
- if (aggregator_ && aggregator_->previous_contained_surfaces().count(surface))
+ if (aggregator_ &&
+ aggregator_->previous_contained_surfaces().count(surface)) {
+ aggregator_->ReleaseResources(surface);
jamesr 2014/12/13 01:54:26 it's a little fragile here that we have to make su
client_->DisplayDamaged();
+ }
}
SurfaceId Display::CurrentSurfaceId() {
« no previous file with comments | « no previous file | cc/surfaces/surface_aggregator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698