diff options
| author | Po Lu | 2023-07-13 12:05:50 +0800 |
|---|---|---|
| committer | Po Lu | 2023-07-13 12:05:50 +0800 |
| commit | 140755f2cfe6a39f643ab0a9ca2d81b0ed470ae7 (patch) | |
| tree | b55477c3af604e56e4797a8d9b711ed12f8b5fb7 /java/AndroidManifest.xml.in | |
| parent | 4e2fda28edd3eb229c60576a215c3e4af5aa53e3 (diff) | |
| download | emacs-140755f2cfe6a39f643ab0a9ca2d81b0ed470ae7.tar.gz emacs-140755f2cfe6a39f643ab0a9ca2d81b0ed470ae7.zip | |
Disable hardware acceleration on Android
It serves no purpose and causes tearing. Uploading the bitmap
to the GPU takes about as long as it does to incrementally
update the surface in software.
* java/AndroidManifest.xml.in: Disable hardware acceleration.
* java/org/gnu/emacs/EmacsActivity.java (EmacsActivity): Make
lastClosedMenu static.
* java/org/gnu/emacs/EmacsDialog.java (toAlertDialog): Enable
hardware acceleration within alert dialogs.
* java/org/gnu/emacs/EmacsSurfaceView.java (onDraw): Describe
why hardware acceleration is disabled.
* java/org/gnu/emacs/EmacsWindow.java (run): Remove redundant
call.
Diffstat (limited to 'java/AndroidManifest.xml.in')
| -rw-r--r-- | java/AndroidManifest.xml.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/java/AndroidManifest.xml.in b/java/AndroidManifest.xml.in index e79fb4e46e7..f2aede7369c 100644 --- a/java/AndroidManifest.xml.in +++ b/java/AndroidManifest.xml.in | |||
| @@ -77,10 +77,14 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. --> | |||
| 77 | @ANDROID_SHARED_USER_ID@ | 77 | @ANDROID_SHARED_USER_ID@ |
| 78 | android:extractNativeLibs="true"> | 78 | android:extractNativeLibs="true"> |
| 79 | 79 | ||
| 80 | <!-- See EmacsSurfaceView.onDraw for why hardware acceleration is | ||
| 81 | disabled. --> | ||
| 82 | |||
| 80 | <activity android:name="org.gnu.emacs.EmacsActivity" | 83 | <activity android:name="org.gnu.emacs.EmacsActivity" |
| 81 | android:launchMode="singleInstance" | 84 | android:launchMode="singleInstance" |
| 82 | android:windowSoftInputMode="adjustResize" | 85 | android:windowSoftInputMode="adjustResize" |
| 83 | android:exported="true" | 86 | android:exported="true" |
| 87 | android:hardwareAccelerated="false" | ||
| 84 | android:configChanges="orientation|screenSize|screenLayout|keyboardHidden"> | 88 | android:configChanges="orientation|screenSize|screenLayout|keyboardHidden"> |
| 85 | <intent-filter> | 89 | <intent-filter> |
| 86 | <action android:name="android.intent.action.MAIN" /> | 90 | <action android:name="android.intent.action.MAIN" /> |
| @@ -173,6 +177,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. --> | |||
| 173 | <activity android:name="org.gnu.emacs.EmacsMultitaskActivity" | 177 | <activity android:name="org.gnu.emacs.EmacsMultitaskActivity" |
| 174 | android:windowSoftInputMode="adjustResize" | 178 | android:windowSoftInputMode="adjustResize" |
| 175 | android:exported="true" | 179 | android:exported="true" |
| 180 | android:hardwareAccelerated="false" | ||
| 176 | android:configChanges="orientation|screenSize|screenLayout|keyboardHidden"/> | 181 | android:configChanges="orientation|screenSize|screenLayout|keyboardHidden"/> |
| 177 | 182 | ||
| 178 | <activity android:autoRemoveFromRecents="true" | 183 | <activity android:autoRemoveFromRecents="true" |