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

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

Issue 1136053003: Check whether Java bitmap memory size is same to one of SkBitmap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use static_cast<int> Created 5 years, 7 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.h » ('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 7ad6e921cb59181a7daa4cd39986a9e260947450..d921efa9dc56ec5f3b29bf79dd1bbde373bc1837 100644
--- a/ui/android/java/src/org/chromium/ui/gfx/BitmapHelper.java
+++ b/ui/android/java/src/org/chromium/ui/gfx/BitmapHelper.java
@@ -44,7 +44,7 @@ public class BitmapHelper {
}
}
- /**
+ /**
* Provides a matching Bitmap.Config for the enum config value passed.
*
* @param bitmapFormatValue The Bitmap Configuration enum value.
@@ -64,4 +64,8 @@ public class BitmapHelper {
}
}
+ @CalledByNative
+ private static int getByteCount(Bitmap bitmap) {
+ return bitmap.getByteCount();
+ }
}
« no previous file with comments | « no previous file | ui/gfx/android/java_bitmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698