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

Unified Diff: cc/layers/delegated_frame_resource_collection.cc

Issue 69343011: cc: Rationalize sync points and lost status for returned resources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/layers/delegated_frame_resource_collection.h ('k') | cc/layers/texture_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/delegated_frame_resource_collection.cc
diff --git a/cc/layers/delegated_frame_resource_collection.cc b/cc/layers/delegated_frame_resource_collection.cc
index 5ca4eda57d761bed7998ae75964a136c979ddae9..59f9f4f40075bd4f5b3f65aa7c42c2513d7771bf 100644
--- a/cc/layers/delegated_frame_resource_collection.cc
+++ b/cc/layers/delegated_frame_resource_collection.cc
@@ -88,9 +88,14 @@ void DelegatedFrameResourceCollection::UnrefResources(
DCHECK(it != resource_id_ref_count_map_.end());
DCHECK_GE(it->second.refs_to_wait_for, returned[i].count);
it->second.refs_to_wait_for -= returned[i].count;
+ it->second.lost |= returned[i].lost;
+ if (returned[i].sync_point)
+ it->second.sync_point = returned[i].sync_point;
if (it->second.refs_to_wait_for == 0) {
to_return.push_back(returned[i]);
to_return.back().count = it->second.refs_to_return;
+ to_return.back().sync_point = it->second.sync_point;
+ to_return.back().lost = it->second.lost;
resource_id_ref_count_map_.erase(it);
}
}
« no previous file with comments | « cc/layers/delegated_frame_resource_collection.h ('k') | cc/layers/texture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698