Index: ui/gfx/android/java_bitmap.h |
diff --git a/ui/gfx/android/java_bitmap.h b/ui/gfx/android/java_bitmap.h |
index 061bb76e537e740767947b183482e873f0c63b39..ac01653f76cf1d400cbaf24ec75065c374147a38 100644 |
--- a/ui/gfx/android/java_bitmap.h |
+++ b/ui/gfx/android/java_bitmap.h |
@@ -5,6 +5,8 @@ |
#ifndef UI_GFX_ANDROID_JAVA_BITMAP_H_ |
#define UI_GFX_ANDROID_JAVA_BITMAP_H_ |
+#include <jni.h> |
+ |
#include "base/android/scoped_java_ref.h" |
#include "ui/gfx/size.h" |
@@ -26,6 +28,9 @@ class UI_EXPORT JavaBitmap { |
inline int format() const { return format_; } |
inline uint32_t stride() const { return stride_; } |
+ // Registers methods with JNI and returns true if succeeded. |
+ static bool RegisterJavaBitmap(JNIEnv* env); |
+ |
private: |
jobject bitmap_; |
void* pixels_; |