summaryrefslogtreecommitdiff
path: root/chromium/ui/gfx/android/java_bitmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/gfx/android/java_bitmap.h')
-rw-r--r--chromium/ui/gfx/android/java_bitmap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chromium/ui/gfx/android/java_bitmap.h b/chromium/ui/gfx/android/java_bitmap.h
index 9dd49fb8a38..319ad79eb1e 100644
--- a/chromium/ui/gfx/android/java_bitmap.h
+++ b/chromium/ui/gfx/android/java_bitmap.h
@@ -44,7 +44,10 @@ class UI_EXPORT JavaBitmap {
UI_EXPORT base::android::ScopedJavaLocalRef<jobject> ConvertToJavaBitmap(
const SkBitmap* skbitmap);
+UI_EXPORT SkBitmap CreateSkBitmapFromJavaBitmap(JavaBitmap& jbitmap);
+
// If the resource loads successfully, it will be resized to |size|.
+// Note: If the source resource is smaller than |size|, quality may suffer.
UI_EXPORT SkBitmap CreateSkBitmapFromResource(const char* name, gfx::Size size);
} // namespace gfx