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

Unified Diff: ui/android/resources/resource_manager.h

Issue 2293573002: Add tinted static UI resource cache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up Created 4 years, 4 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
Index: ui/android/resources/resource_manager.h
diff --git a/ui/android/resources/resource_manager.h b/ui/android/resources/resource_manager.h
index 5161ace541078aafd1966424fdc19077a0fc30dd..9ccaa53565a434191a89c2183db895fe8ddf7f24 100644
--- a/ui/android/resources/resource_manager.h
+++ b/ui/android/resources/resource_manager.h
@@ -60,6 +60,12 @@ class UI_ANDROID_EXPORT ResourceManager {
// to react appropriately.
virtual Resource* GetResource(AndroidResourceType res_type, int res_id) = 0;
+ // Return a handle to a static resource specified by |res_id| that has a tint
+ // of |tint_color| applied to it. |default_color| is used if the cache becomes
+ // too large.
+ virtual Resource* GetStaticResourceWithTint(
+ int res_id, int tint_color, int default_color) = 0;
+
// Trigger asynchronous loading of the resource specified by |res_type| and
// |res_id|, if it has not yet been loaded.
virtual void PreloadResource(AndroidResourceType res_type, int res_id) = 0;

Powered by Google App Engine
This is Rietveld 408576698