diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2020-03-12 13:17:02 +0200 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2020-03-13 02:18:29 +0200 |
commit | c4502372e690b60ad9d4dea430531a1463fac635 (patch) | |
tree | ad3e8a62b2a569ef075995fba59900746017de64 /platform/android/src/style/layers/custom_layer.hpp | |
parent | d9d0cbcc6b1ec0c3eb0841e84561498ac1a067d4 (diff) | |
download | qtlocation-mapboxgl-upstream/alexshalamov_android_snapshotter.tar.gz |
Remove Map parameter from factoriesupstream/alexshalamov_android_snapshotter
- remove unused map from factory interfaces. Map is only needed for repaint.
Diffstat (limited to 'platform/android/src/style/layers/custom_layer.hpp')
-rw-r--r-- | platform/android/src/style/layers/custom_layer.hpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/platform/android/src/style/layers/custom_layer.hpp b/platform/android/src/style/layers/custom_layer.hpp index dc328a2137..3856ea73ae 100644 --- a/platform/android/src/style/layers/custom_layer.hpp +++ b/platform/android/src/style/layers/custom_layer.hpp @@ -16,14 +16,11 @@ public: static void registerNative(jni::JNIEnv&); CustomLayer(jni::JNIEnv&, const jni::String&, jni::jlong); - CustomLayer(mbgl::Map&, mbgl::style::CustomLayer&); - CustomLayer(mbgl::Map&, std::unique_ptr<mbgl::style::CustomLayer>); + CustomLayer(mbgl::style::CustomLayer&); + CustomLayer(std::unique_ptr<mbgl::style::CustomLayer>); ~CustomLayer(); - void update(jni::JNIEnv&); - jni::Local<jni::Object<Layer>> createJavaPeer(jni::JNIEnv&); - }; // class CustomLayer class CustomJavaLayerPeerFactory final : public JavaLayerPeerFactory, public mbgl::CustomLayerFactory { @@ -31,8 +28,8 @@ public: ~CustomJavaLayerPeerFactory() 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; |