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

Unified Diff: ui/android/resources/resource_manager_impl.cc

Issue 2578233002: Remove title resources when they are no longer used (Closed)
Patch Set: address comments Created 3 years, 11 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 | « ui/android/resources/resource_manager_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/resources/resource_manager_impl.cc
diff --git a/ui/android/resources/resource_manager_impl.cc b/ui/android/resources/resource_manager_impl.cc
index 2e0cc894fe6979a91d694aa74db3256f91c391e9..2e001bd9dcec9eea5950e88b33ce186c87d438be 100644
--- a/ui/android/resources/resource_manager_impl.cc
+++ b/ui/android/resources/resource_manager_impl.cc
@@ -220,6 +220,14 @@ void ResourceManagerImpl::OnResourceReady(JNIEnv* env,
ui_resource_manager_, cc::UIResourceBitmap(skbitmap));
}
+void ResourceManagerImpl::RemoveResource(
+ JNIEnv* env,
+ const base::android::JavaRef<jobject>& jobj,
+ jint res_type,
+ jint res_id) {
+ resources_[res_type].erase(res_id);
+}
+
CrushedSpriteResource* ResourceManagerImpl::GetCrushedSpriteResource(
int bitmap_res_id, int metadata_res_id) {
« no previous file with comments | « ui/android/resources/resource_manager_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698