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

Unified Diff: ui/gfx/android/gfx_jni_registrar.cc

Issue 26129009: Cache DeviceDisplayInfo data in shared structure on native side to avoid frequent JNI calls. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Fix clang build issues. Created 7 years, 2 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 | « ui/gfx/android/device_display_info.cc ('k') | ui/gfx/android/shared_device_display_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/android/gfx_jni_registrar.cc
diff --git a/ui/gfx/android/gfx_jni_registrar.cc b/ui/gfx/android/gfx_jni_registrar.cc
index 8aa8551085a70526b01f2bd60a8dc1b0b2fb5aff..be60a33e5a94f72704a7a7fa19c0ef4d5de79931 100644
--- a/ui/gfx/android/gfx_jni_registrar.cc
+++ b/ui/gfx/android/gfx_jni_registrar.cc
@@ -6,15 +6,16 @@
#include "base/android/jni_android.h"
#include "base/android/jni_registrar.h"
-#include "ui/gfx/android/device_display_info.h"
#include "ui/gfx/android/java_bitmap.h"
+#include "ui/gfx/android/shared_device_display_info.h"
namespace gfx {
namespace android {
static base::android::RegistrationMethod kGfxRegisteredMethods[] = {
- { "DeviceDisplayInfo", gfx::DeviceDisplayInfo::RegisterDeviceDisplayInfo },
- { "JavaBitmap", gfx::JavaBitmap::RegisterJavaBitmap },
+ { "SharedDeviceDisplayInfo",
+ SharedDeviceDisplayInfo::RegisterSharedDeviceDisplayInfo },
+ { "JavaBitmap", JavaBitmap::RegisterJavaBitmap },
};
bool RegisterJni(JNIEnv* env) {
« no previous file with comments | « ui/gfx/android/device_display_info.cc ('k') | ui/gfx/android/shared_device_display_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698