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

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

Issue 11886074: Use correct favicon scale factor on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renamed and added JavaBitmap JNI registration to .h Created 7 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
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_;

Powered by Google App Engine
This is Rietveld 408576698