• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/core


Commit MetaInfo

修訂441b4c6fcc84c8e20497b69c77d0d4ce64299adb (tree)
時間2011-08-04 17:36:35
作者Chih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

init: disable hardware specific gralloc

To disable 3D hardware acceleration totally, we need to
tell HAL not to load hardware specific gralloc library.

This is just a workaround. In the future we should implement a
gralloc wrapper to detect graphic driver and load the appropriate
gralloc library.

Change-Id: Idbba5794bd850fce0b6f58a3f45dddee60086a25

Change Summary

差異

--- a/init/init.c
+++ b/init/init.c
@@ -600,6 +600,11 @@ static int set_init_properties_action(int nargs, char **args)
600600 property_set("ro.carrier", carrier[0] ? carrier : "unknown");
601601 property_set("ro.bootloader", bootloader[0] ? bootloader : "unknown");
602602
603+ if ((tmpdev = getenv("HWACCEL")) && tmpdev[0] == '0') {
604+ property_set("debug.egl.hw", tmpdev);
605+ // a temporary workaround to disable hardware specific gralloc
606+ hardware[0] = '\0';
607+ }
603608 property_set("ro.hardware", hardware);
604609 snprintf(tmp, PROP_VALUE_MAX, "%d", revision);
605610 property_set("ro.revision", tmp);