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

Unified Diff: cc/surfaces/surface_resource_holder.cc

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 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/surfaces/surface_resource_holder.h ('k') | cc/test/data/background_filter_on_scaled_layer_sw.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_resource_holder.cc
diff --git a/cc/surfaces/surface_resource_holder.cc b/cc/surfaces/surface_resource_holder.cc
index ec794895906df17276fd4d4d287609adcb6e3a20..6d1e60d0c6a2766a930335eccacf382e5de2c1ec 100644
--- a/cc/surfaces/surface_resource_holder.cc
+++ b/cc/surfaces/surface_resource_holder.cc
@@ -19,6 +19,10 @@ SurfaceResourceHolder::ResourceRefs::ResourceRefs()
: refs_received_from_child(0), refs_holding_resource_alive(0) {
}
+void SurfaceResourceHolder::Reset() {
+ resource_id_info_map_.clear();
+}
+
void SurfaceResourceHolder::ReceiveFromChild(
const TransferableResourceArray& resources) {
for (TransferableResourceArray::const_iterator it = resources.begin();
« no previous file with comments | « cc/surfaces/surface_resource_holder.h ('k') | cc/test/data/background_filter_on_scaled_layer_sw.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698