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

Unified Diff: cc/layers/delegated_frame_resource_collection.h

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 | « no previous file | cc/layers/delegated_frame_resource_collection.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.h
diff --git a/cc/layers/delegated_frame_resource_collection.h b/cc/layers/delegated_frame_resource_collection.h
index 9a5d336749bb610580bcc552b95800d55c76c86d..7a22e29d86ef76bf140d7d8734409575054093fc 100644
--- a/cc/layers/delegated_frame_resource_collection.h
+++ b/cc/layers/delegated_frame_resource_collection.h
@@ -54,8 +54,12 @@ class CC_EXPORT DelegatedFrameResourceCollection
bool lost_all_resources_;
struct RefCount {
+ RefCount()
+ : refs_to_return(0), refs_to_wait_for(0), sync_point(0), lost(false) {}
int refs_to_return;
int refs_to_wait_for;
+ unsigned int sync_point;
+ bool lost;
};
typedef base::hash_map<unsigned, RefCount> ResourceIdRefCountMap;
ResourceIdRefCountMap resource_id_ref_count_map_;
« no previous file with comments | « no previous file | cc/layers/delegated_frame_resource_collection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698