diff options
author | Leith Bade <leith@mapbox.com> | 2015-07-28 14:34:16 +1000 |
---|---|---|
committer | Leith Bade <leith@mapbox.com> | 2015-07-29 12:17:42 +1000 |
commit | d57a02f3a9274d331ddaa7a82d062e36fdc09251 (patch) | |
tree | 0e42e6378763c775e701fa3b3c15b2385aad707f /include | |
parent | 3f2f9d26c80aeb62c22832799345a56c3ef1506c (diff) | |
download | qtlocation-mapboxgl-d57a02f3a9274d331ddaa7a82d062e36fdc09251.tar.gz |
First pass at updating JNI bindings
Hook up collisionDebug, isFullyLoaded, onLowMemory in Android
Rename class to styleClass in Java to match iOS
Fixed some formatting
Fixes #1905
Fixes #1946
Fixes #1263
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/android/native_map_view.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/mbgl/android/native_map_view.hpp b/include/mbgl/android/native_map_view.hpp index e65c16869c..1ea67a0da8 100644 --- a/include/mbgl/android/native_map_view.hpp +++ b/include/mbgl/android/native_map_view.hpp @@ -17,7 +17,7 @@ namespace android { class NativeMapView : public mbgl::View, private mbgl::util::noncopyable { public: - NativeMapView(JNIEnv *env, jobject obj, float pixelRatio); + NativeMapView(JNIEnv *env, jobject obj, float pixelRatio, int availableProcessors, size_t totalMemory); virtual ~NativeMapView(); float getPixelRatio() const override; @@ -85,6 +85,9 @@ private: int fbHeight = 0; const float pixelRatio; + int availableProcessors = 0; + size_t totalMemory = 0; + // Ensure these are initialised last mbgl::SQLiteCache fileCache; mbgl::DefaultFileSource fileSource; |