Bitmap: create Texture as GdkMemoryTexture if nothing has to be rendered

This improves OsmAnd V1 renderer performance.
This commit is contained in:
Julian Winkler
2024-12-22 12:22:30 +01:00
parent 0dfcb9324f
commit bf923cfcfa
3 changed files with 31 additions and 22 deletions

View File

@@ -18,10 +18,10 @@ JNIEXPORT jlong JNICALL Java_android_graphics_Bitmap_native_1create_1snapshot
/*
* Class: android_graphics_Bitmap
* Method: native_create_texture
* Signature: (JII)J
* Signature: (JIIII)J
*/
JNIEXPORT jlong JNICALL Java_android_graphics_Bitmap_native_1create_1texture
(JNIEnv *, jclass, jlong, jint, jint);
(JNIEnv *, jclass, jlong, jint, jint, jint, jint);
/*
* Class: android_graphics_Bitmap