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..81e004b81d76be0340ea318005e78e67c136b6b3 100644 |
--- a/ui/android/resources/resource_manager.h |
+++ b/ui/android/resources/resource_manager.h |
@@ -6,6 +6,8 @@ |
#define UI_ANDROID_RESOURCES_RESOURCE_MANAGER_H_ |
#include <memory> |
+#include <unordered_map> |
+#include <unordered_set> |
#include "base/android/jni_android.h" |
#include "cc/resources/scoped_ui_resource.h" |
@@ -60,6 +62,15 @@ 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. |
+ virtual Resource* GetStaticResourceWithTint(int res_id, int tint_color) = 0; |
+ |
+ // Remove tints that were unused in the current frame being built. This |
+ // function takes a set |used_tints| and removes all the tints not in the set |
+ // from the cache. |
+ virtual void RemoveUnusedTints(const std::unordered_set<int>& used_tints) = 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; |