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

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

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
Index: ui/gfx/android/device_display_info.h
diff --git a/ui/gfx/android/device_display_info.h b/ui/gfx/android/device_display_info.h
index ace8569c73373ac1e83a83719d3f793798ba85d5..83968e9b51eb537edcea484d7c39863510becd15 100644
--- a/ui/gfx/android/device_display_info.h
+++ b/ui/gfx/android/device_display_info.h
@@ -8,7 +8,6 @@
#include <jni.h>
#include <string>
-#include "base/android/scoped_java_ref.h"
#include "base/basictypes.h"
#include "ui/gfx/gfx_export.h"
@@ -40,12 +39,7 @@ class GFX_EXPORT DeviceDisplayInfo {
// Smallest possible screen size in density-independent pixels.
int GetSmallestDIPWidth();
- // Registers methods with JNI and returns true if succeeded.
- static bool RegisterDeviceDisplayInfo(JNIEnv* env);
-
private:
- base::android::ScopedJavaGlobalRef<jobject> j_device_info_;
-
DISALLOW_COPY_AND_ASSIGN(DeviceDisplayInfo);
};
« no previous file with comments | « ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java ('k') | ui/gfx/android/device_display_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698