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

Unified Diff: ui/gfx/android/java_bitmap.h

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: 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
Index: ui/gfx/android/java_bitmap.h
diff --git a/ui/gfx/android/java_bitmap.h b/ui/gfx/android/java_bitmap.h
index 31db157bd44c8dd631762cd1200387712988b4e9..6c615abb4c852e6ae0cfb558fe410476d666466e 100644
--- a/ui/gfx/android/java_bitmap.h
+++ b/ui/gfx/android/java_bitmap.h
@@ -37,6 +37,7 @@ class GFX_EXPORT JavaBitmap {
// Formats are in android/bitmap.h; e.g. ANDROID_BITMAP_FORMAT_RGBA_8888
inline int format() const { return format_; }
inline uint32_t stride() const { return stride_; }
+ inline int byte_count() const { return byte_count_; }
// Registers methods with JNI and returns true if succeeded.
static bool RegisterJavaBitmap(JNIEnv* env);
@@ -47,6 +48,7 @@ class GFX_EXPORT JavaBitmap {
gfx::Size size_;
int format_;
uint32_t stride_;
+ int byte_count_;
DISALLOW_COPY_AND_ASSIGN(JavaBitmap);
};

Powered by Google App Engine
This is Rietveld 408576698