summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Ludovino <dllud@riseup.net>2019-09-01 14:44:56 (GMT)
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-12-09 16:09:21 (GMT)
commitf171facab57489b58d74c77dad10e774bfdbbacd (patch)
treec1e62aff26b1017606fd750567976bbbb530612b
parent7ef25210cbc5c2fae76776ee3d0fdcddf1995071 (diff)
downloadframeworks_base-f171facab57489b58d74c77dad10e774bfdbbacd.zip
frameworks_base-f171facab57489b58d74c77dad10e774bfdbbacd.tar.gz
frameworks_base-f171facab57489b58d74c77dad10e774bfdbbacd.tar.bz2
HACK: force hardwareAccelerated to false on all apps.
This forces all apps to draw their Canvas with pure software Skia instead of HWUI. Result: an order of magnitude speedup on software rendering. Reason: HWUI uses GLES to render the Canvas. This works fine with hardware backed GLES. However, it is much slower than Skia when using a software renderer for GLES (e.g. llvmpipe or SwiftShader). Problem: breaks some apps like ScreenLock and Trebuchet. This dirty hack should be turned into a system property. Change-Id: I1b56a363fafce7dc3c56452fe03898070b7ba279 Signed-off-by: David Ludovino <dllud@riseup.net>
-rw-r--r--core/java/android/content/pm/PackageParser.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/core/java/android/content/pm/PackageParser.java b/core/java/android/content/pm/PackageParser.java
index edca4e6..c1f544f 100644
--- a/core/java/android/content/pm/PackageParser.java
+++ b/core/java/android/content/pm/PackageParser.java
@@ -3448,9 +3448,7 @@ public class PackageParser {
ai.flags |= ApplicationInfo.FLAG_VM_SAFE_MODE;
}
- owner.baseHardwareAccelerated = sa.getBoolean(
- com.android.internal.R.styleable.AndroidManifestApplication_hardwareAccelerated,
- owner.applicationInfo.targetSdkVersion >= Build.VERSION_CODES.ICE_CREAM_SANDWICH);
+ owner.baseHardwareAccelerated = false;
if (owner.baseHardwareAccelerated) {
ai.flags |= ApplicationInfo.FLAG_HARDWARE_ACCELERATED;
}
@@ -4221,11 +4219,6 @@ public class PackageParser {
}
if (!receiver) {
- if (sa.getBoolean(R.styleable.AndroidManifestActivity_hardwareAccelerated,
- hardwareAccelerated)) {
- a.info.flags |= ActivityInfo.FLAG_HARDWARE_ACCELERATED;
- }
-
a.info.launchMode = sa.getInt(
R.styleable.AndroidManifestActivity_launchMode, ActivityInfo.LAUNCH_MULTIPLE);
a.info.documentLaunchMode = sa.getInt(