Index: ui/gfx/android/java_bitmap.h |
diff --git a/ui/gfx/android/java_bitmap.h b/ui/gfx/android/java_bitmap.h |
index cb1077d73e2ca49f6c8af26c8a107bda67398d6c..5cda137a1eef9ca5c2944b2929a97f9af2f14e29 100644 |
--- a/ui/gfx/android/java_bitmap.h |
+++ b/ui/gfx/android/java_bitmap.h |
@@ -49,6 +49,13 @@ class GFX_EXPORT JavaBitmap { |
DISALLOW_COPY_AND_ASSIGN(JavaBitmap); |
}; |
+// Allocates a Java-backed bitmap (android.graphics.Bitmap) with the given size |
+// and configuration. |
+GFX_EXPORT base::android::ScopedJavaLocalRef<jobject> CreateJavaBitmap( |
+ int width, |
+ int height, |
+ SkBitmap::Config bitmap_config); |
+ |
GFX_EXPORT base::android::ScopedJavaLocalRef<jobject> ConvertToJavaBitmap( |
const SkBitmap* skbitmap); |