Rendering statistics view (#3322)
Co-authored-by: Bart Louwers <bart@emeel.net>
This commit is contained in:
22
platform/android/MapLibreAndroid/src/cpp/rendering_stats.hpp
Normal file
22
platform/android/MapLibreAndroid/src/cpp/rendering_stats.hpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/gfx/rendering_stats.hpp>
|
||||
|
||||
#include <string>
|
||||
#include <jni.h>
|
||||
#include <jni/jni.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
namespace android {
|
||||
|
||||
class RenderingStats {
|
||||
public:
|
||||
static constexpr auto Name() { return "org/maplibre/android/maps/RenderingStats"; };
|
||||
static void registerNative(jni::JNIEnv& env);
|
||||
|
||||
static jni::Local<jni::Object<RenderingStats>> Create(jni::JNIEnv&);
|
||||
static void Update(jni::JNIEnv&, jni::Object<RenderingStats>&, const gfx::RenderingStats&);
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
Reference in New Issue
Block a user