aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheckYourScreen <nimitmehta95@gmail.com>2017-06-18 09:03:25 +0200
committerSubhrajyoti Sen <subhrajyoti12@gmail.com>2017-06-20 22:27:45 +0530
commit1d8dc3cdf142f2e190561422c9f14d3af16619ec (patch)
tree698a11e774059f5d81e0ef27121eaddf30e5711f
parent6e1b9b7ef745fa98b380643ab4afc07c380d935e (diff)
onyx: inherit custom optimized hwui memory values
* opens up way for further planned improvements * increased large cache height to 2048. Change-Id: I1aacbf50b58a2f47e5edac5bc69104f1d4b77134 Signed-off-by: CheckYourScreen <nimitmehta95@gmail.com>
-rw-r--r--device.mk2
-rw-r--r--hwui-memory.mk30
2 files changed, 31 insertions, 1 deletions
diff --git a/device.mk b/device.mk
index 9cf9345..47b71dc 100644
--- a/device.mk
+++ b/device.mk
@@ -16,7 +16,7 @@
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
$(call inherit-product, device/oneplus/onyx/dalvik-heap.mk)
-$(call inherit-product-if-exists, frameworks/native/build/phone-xxhdpi-3072-hwui-memory.mk)
+$(call inherit-product, device/oneplus/onyx/hwui-memory.mk)
# Overlays
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
diff --git a/hwui-memory.mk b/hwui-memory.mk
new file mode 100644
index 0000000..813b1bd
--- /dev/null
+++ b/hwui-memory.mk
@@ -0,0 +1,30 @@
+#
+# Copyright (C) 2017 CheckYourScreen
+#
+# 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.
+#
+
+# Provides overrides to configure the HWUI memory limits
+
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.hwui.texture_cache_size=72 \
+ ro.hwui.layer_cache_size=48 \
+ ro.hwui.path_cache_size=32 \
+ ro.hwui.gradient_cache_size=1 \
+ ro.hwui.drop_shadow_cache_size=6 \
+ ro.hwui.r_buffer_cache_size=8 \
+ ro.hwui.texture_cache_flushrate=0.4 \
+ ro.hwui.text_small_cache_width=1024 \
+ ro.hwui.text_small_cache_height=1024 \
+ ro.hwui.text_large_cache_width=2048 \
+ ro.hwui.text_large_cache_height=2048