On Apr 12, 5:07 am, DavidW <leiwangc...@gmail.com> wrote: > I'm also trying to use softwareGl for ics, I did the same thing > following the linaro guide(https://wiki.linaro.org/Platform/Android/ > ICSwithSoftwareGL), but it doesn't work for me. > In which file you add hwcomposer.default to PRODUCT_PACKAGES list?
Patches I used are as below. commit da88709934a1a41f5360e5d3660b4f00faeee907 Author: Bahadir Balban <bbal...@b-labs.com> Date: Thu Apr 5 21:51:57 2012 +0300 Fix hwcomposer.default for omap4 for soft rendering diff --git a/hardware/ti/omap4xxx/omap4.mk b/hardware/ti/omap4xxx/ omap4.mk index 0fc74f5..1ab0f8a 100644 --- a/hardware/ti/omap4xxx/omap4.mk +++ b/hardware/ti/omap4xxx/omap4.mk @@ -31,7 +31,7 @@ PRODUCT_PACKAGES := \ libion \ camera.omap4 \ libomxcameraadapter \ - hwcomposer.omap4 \ + hwcomposer.default \ smc_pa_ctrl \ tf_daemon diff --git a/frameworks/base/core/java/android/app/ ActivityManager.java b/frameworks/base/core/java/android/app/ ActivityManager.java index 4fe9cef..13559b5 100644 --- a/frameworks/base/core/java/android/app/ActivityManager.java +++ b/frameworks/base/core/java/android/app/ActivityManager.java @@ -216,6 +216,8 @@ public class ActivityManager { * @hide */ static public boolean isHighEndGfx(Display display) { + /* + * BB: Force no hw rendering by always returning false. MemInfoReader reader = new MemInfoReader(); reader.readMemInfo(); if (reader.getTotalSize() >= (512*1024*1024)) { @@ -231,6 +233,7 @@ public class ActivityManager { // pixels on it that we'd really like to use hw drawing. return true; } + */ return false; } diff --git a/frameworks/base/core/java/android/view/ HardwareRenderer.java b/frameworks/base/core/java/android/view/ HardwareRenderer.java index ccb6489..25038cc 100644 --- a/frameworks/base/core/java/android/view/HardwareRenderer.java +++ b/frameworks/base/core/java/android/view/HardwareRenderer.java @@ -103,14 +103,22 @@ public abstract class HardwareRenderer { * * @hide */ - public static boolean sRendererDisabled = false; + /* + * BB: Force no hw rendering always. + */ + //public static boolean sRendererDisabled = false; + public static boolean sRendererDisabled = true; /** * Further hardware renderer disabling for the system process. * * @hide */ - public static boolean sSystemRendererDisabled = false; + /* + * BB: Force no hw rendering always. + */ + //public static boolean sSystemRendererDisabled = false; + public static boolean sSystemRendererDisabled = true; private boolean mEnabled; private boolean mRequested = true; -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting