Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(506)

Unified Diff: ui/android/java/src/org/chromium/ui/gfx/BitmapHelper.java

Issue 146703005: Support creation of RGB565 JavaBitmap from helper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change the visibility of helper function to private. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/gfx/android/java_bitmap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | ui/gfx/android/java_bitmap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698