diff options
author | Kevin Li <kevin.li@mapbox.com> | 2020-03-24 14:33:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-24 14:33:54 +0800 |
commit | 3f45b0a24b5b608dfa75c84308d1ab0deb6159ee (patch) | |
tree | 31d3d4ced5b4004ee1a3ea27d683a148c04cbe22 /platform/android/src/style/layers/fill_extrusion_layer.hpp | |
parent | 1adc436c9d883663b2d6fb0cb9014043fa7bc2b6 (diff) | |
download | qtlocation-mapboxgl-3f45b0a24b5b608dfa75c84308d1ab0deb6159ee.tar.gz |
[android] Add jni binding for styleable snapshotter (#16286)
* [android] Add jni binding for styleable snapshotter
* Remove Map parameter from factories
- remove unused map from factory interfaces. Map is only needed for repaint.
* implement addlayer function
* Implement addsource function for snapshotter
* Implement addImages function
* format codes
* Apply baseline
* Update CHANGELOG.md
* Update map_snapshotter.cpp
* Destroy snapshotter on the thread it was created
* Activate file sources in start
* Use custom deleter for snapshotter
* format codes
* Release snapshotter pointer to deleting lambda
* Clang format
* Update CHANGELOG.md
* Fix review comments
* FIx review comments
Co-authored-by: Alexander Shalamov <alexander.shalamov@mapbox.com>
Diffstat (limited to 'platform/android/src/style/layers/fill_extrusion_layer.hpp')
-rw-r--r-- | platform/android/src/style/layers/fill_extrusion_layer.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/android/src/style/layers/fill_extrusion_layer.hpp b/platform/android/src/style/layers/fill_extrusion_layer.hpp index 15dad67b01..6f0a24131c 100644 --- a/platform/android/src/style/layers/fill_extrusion_layer.hpp +++ b/platform/android/src/style/layers/fill_extrusion_layer.hpp @@ -18,9 +18,9 @@ public: FillExtrusionLayer(jni::JNIEnv&, jni::String&, jni::String&); - FillExtrusionLayer(mbgl::Map&, mbgl::style::FillExtrusionLayer&); + FillExtrusionLayer(mbgl::style::FillExtrusionLayer&); - FillExtrusionLayer(mbgl::Map&, std::unique_ptr<mbgl::style::FillExtrusionLayer>); + FillExtrusionLayer(std::unique_ptr<mbgl::style::FillExtrusionLayer>); ~FillExtrusionLayer(); @@ -61,8 +61,8 @@ public: ~FillExtrusionJavaLayerPeerFactory() override; // JavaLayerPeerFactory overrides. - jni::Local<jni::Object<Layer>> createJavaLayerPeer(jni::JNIEnv&, mbgl::Map&, mbgl::style::Layer&) final; - jni::Local<jni::Object<Layer>> createJavaLayerPeer(jni::JNIEnv& env, mbgl::Map& map, std::unique_ptr<mbgl::style::Layer>) final; + jni::Local<jni::Object<Layer>> createJavaLayerPeer(jni::JNIEnv&, mbgl::style::Layer&) final; + jni::Local<jni::Object<Layer>> createJavaLayerPeer(jni::JNIEnv& env, std::unique_ptr<mbgl::style::Layer>) final; void registerNative(jni::JNIEnv&) final; |