Index: ui/gfx/android/java_bitmap.h |
diff --git a/ui/gfx/android/java_bitmap.h b/ui/gfx/android/java_bitmap.h |
index 44a17cade7442f4f8dc9550717c6268a291d2611..62c5b325e270af2f3e64ec5781fff657a2376a1b 100644 |
--- a/ui/gfx/android/java_bitmap.h |
+++ b/ui/gfx/android/java_bitmap.h |
@@ -58,6 +58,16 @@ GFX_EXPORT base::android::ScopedJavaLocalRef<jobject> CreateJavaBitmap( |
SkBitmap::Config bitmap_config); |
// Loads a Java-backed bitmap (android.graphics.Bitmap) from the provided |
+// drawable resource id. |
+GFX_EXPORT base::android::ScopedJavaLocalRef<jobject> |
+ CreateJavaBitmapFromAndroidResource(int resource_id); |
+ |
+// Loads a Java-backed bitmap (android.graphics.Bitmap) from the provided |
+// drawable resource string identifier (e.g., android:drawable/overscroll_glow). |
+GFX_EXPORT base::android::ScopedJavaLocalRef<jobject> |
+ CreateJavaBitmapFromAndroidResource(const char* name); |
+ |
+// Loads a Java-backed bitmap (android.graphics.Bitmap) from the provided |
// drawable resource identifier (e.g., android:drawable/overscroll_glow). If the |
// resource loads successfully, it will be integrally scaled down, preserving |
// aspect ratio, to a size no smaller than |size|. Otherwise, null is returned. |