diff options
| author | Po Lu | 2024-01-26 11:24:51 +0800 |
|---|---|---|
| committer | Po Lu | 2024-01-26 11:24:51 +0800 |
| commit | 16831e290ed29f5f70dfe144ec63c583527485e8 (patch) | |
| tree | eecc1f3de356aa04a82f4687d7dac4303282ea77 /src/androidgui.h | |
| parent | 65829b27ca4898ff0905a8124980243977a1382f (diff) | |
| download | emacs-16831e290ed29f5f70dfe144ec63c583527485e8.tar.gz emacs-16831e290ed29f5f70dfe144ec63c583527485e8.zip | |
Avert race condition between window attachment and buffer swap
* java/org/gnu/emacs/EmacsView.java (swapBuffers): Synchronize
such that code cannot execute between the bitmap's being loaded
and being transferred to surfaceView.
(onDetachedFromWindow): Recycle bitmap after the surface view is
reset.
* java/org/gnu/emacs/EmacsWindow.java (recreateActivity):
* src/android.c (android_init_emacs_window)
(android_recreate_activity):
* src/androidfns.c (Fandroid_recreate_activity)
(syms_of_androidfns): New functions for debugging window
attachment.
* src/androidgui.h: Update prototypes.
Diffstat (limited to 'src/androidgui.h')
| -rw-r--r-- | src/androidgui.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/androidgui.h b/src/androidgui.h index 69efd393d55..89317581191 100644 --- a/src/androidgui.h +++ b/src/androidgui.h | |||
| @@ -708,6 +708,7 @@ extern void android_translate_coordinates (android_window, int, | |||
| 708 | extern int android_wc_lookup_string (android_key_pressed_event *, | 708 | extern int android_wc_lookup_string (android_key_pressed_event *, |
| 709 | wchar_t *, int, int *, | 709 | wchar_t *, int, int *, |
| 710 | enum android_lookup_status *); | 710 | enum android_lookup_status *); |
| 711 | extern void android_recreate_activity (android_window); | ||
| 711 | extern void android_update_ic (android_window, ptrdiff_t, ptrdiff_t, | 712 | extern void android_update_ic (android_window, ptrdiff_t, ptrdiff_t, |
| 712 | ptrdiff_t, ptrdiff_t); | 713 | ptrdiff_t, ptrdiff_t); |
| 713 | extern void android_reset_ic (android_window, enum android_ic_mode); | 714 | extern void android_reset_ic (android_window, enum android_ic_mode); |