summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>2012-08-19 23:21:08 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>2012-08-22 14:36:50 +0200
commit90b11256f71d93254827bd29e8fb2386e3272541 (patch)
treea9bf4088f08faa7b60790fd5c7644247a89b2628
parentb3d0366d590c20efa1a024a751c11e8392d4b334 (diff)
downloadvendor_replicant-90b11256f71d93254827bd29e8fb2386e3272541.zip
vendor_replicant-90b11256f71d93254827bd29e8fb2386e3272541.tar.gz
vendor_replicant-90b11256f71d93254827bd29e8fb2386e3272541.tar.bz2
Add software GL instruction
Change-Id: Icd9fa3f5c26c73906ee7e7af34bd9f8c6f0b0e10 Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
-rw-r--r--config/software_gl.mk17
-rw-r--r--overlay/software_gl/frameworks/base/packages/SettingsProvider/res/values/defaults.xml22
2 files changed, 39 insertions, 0 deletions
diff --git a/config/software_gl.mk b/config/software_gl.mk
new file mode 100644
index 0000000..ac729f5
--- /dev/null
+++ b/config/software_gl.mk
@@ -0,0 +1,17 @@
+# Software GL overlay
+PRODUCT_PACKAGE_OVERLAYS += vendor/cm/overlay/software_gl
+
+# Board doesn't feature Hardware GL
+BOARD_USES_HGL := false
+
+# Don't use hardware opengl
+USE_OPENGL_RENDERER := false
+
+# Use software rendering
+PRODUCT_PROPERTY_OVERRIDES += \
+ debug.sf.hw=0 \
+ ro.config.disable_hw_accel=true
+
+# Disable fancy rotation animation
+PRODUCT_PROPERTY_OVERRIDES += \
+ persist.sys.rotationanimation=false
diff --git a/overlay/software_gl/frameworks/base/packages/SettingsProvider/res/values/defaults.xml b/overlay/software_gl/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
new file mode 100644
index 0000000..e8f2424
--- /dev/null
+++ b/overlay/software_gl/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/**
+ * Copyright (c) 2009, The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+<resources>
+ <fraction name="def_window_animation_scale">0%</fraction>
+ <fraction name="def_window_transition_scale">0%</fraction>
+</resources>