Index: ui/android/java/src/org/chromium/ui/gfx/BitmapHelper.java |
diff --git a/ui/android/java/src/org/chromium/ui/gfx/BitmapHelper.java b/ui/android/java/src/org/chromium/ui/gfx/BitmapHelper.java |
index 91389022362ecf66f8d060eeb107e02eb1cb6cf5..10eb53a3188bfc8700239f1e482b7bd76a375b2e 100644 |
--- a/ui/android/java/src/org/chromium/ui/gfx/BitmapHelper.java |
+++ b/ui/android/java/src/org/chromium/ui/gfx/BitmapHelper.java |
@@ -17,7 +17,12 @@ import org.chromium.base.JNINamespace; |
@JNINamespace("gfx") |
public class BitmapHelper { |
@CalledByNative |
- public static Bitmap createBitmap(int width, int height) { |
+ private static Bitmap createBitmap(int width, |
+ int height, |
+ boolean is565Config) { |
+ if (is565Config) { |
+ return Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565); |
+ } |
return Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); |
} |