implement SurfaceView.lockCanvas() using GskCanvas

This commit is contained in:
Julian Winkler
2024-06-15 00:00:20 +02:00
parent 81797c2667
commit b95613614e
3 changed files with 59 additions and 5 deletions

View File

@@ -207,6 +207,22 @@ extern "C" {
JNIEXPORT jlong JNICALL Java_android_view_SurfaceView_native_1constructor
(JNIEnv *, jobject, jobject, jobject);
/*
* Class: android_view_SurfaceView
* Method: native_createSnapshot
* Signature: ()J
*/
JNIEXPORT jlong JNICALL Java_android_view_SurfaceView_native_1createSnapshot
(JNIEnv *, jobject);
/*
* Class: android_view_SurfaceView
* Method: native_postSnapshot
* Signature: (JJ)V
*/
JNIEXPORT void JNICALL Java_android_view_SurfaceView_native_1postSnapshot
(JNIEnv *, jobject, jlong, jlong);
#ifdef __cplusplus
}
#endif