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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 1707143002: Added methods to generate sync tokens for resource id(s). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added reserve Created 4 years, 10 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/resources/resource_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 1bcd37d9ebee30efc08f3fb6526b97db592e6899..bd759da8f9c190d1ca033345bfed67d51d391178 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -3648,6 +3648,8 @@ void LayerTreeHostImpl::CreateUIResource(UIResourceId uid,
AutoLockUIResourceBitmap bitmap_lock(bitmap);
resource_provider_->CopyToResource(id, bitmap_lock.GetPixels(),
bitmap.GetSize());
+
+ resource_provider_->GenerateSyncTokenForResource(id);
MarkUIResourceNotEvicted(uid);
}
« no previous file with comments | « cc/resources/resource_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698