maxwen | 3ed2a49 | 2017-09-01 13:49:11 +0200 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2013 The CyanogenMod Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | # Provides overrides to configure the HWUI memory limits |
| 18 | |
maxwen | cbc3db8 | 2018-08-12 17:01:57 +0200 | [diff] [blame^] | 19 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
maxwen | 3ed2a49 | 2017-09-01 13:49:11 +0200 | [diff] [blame] | 20 | ro.hwui.texture_cache_size=72 \ |
| 21 | ro.hwui.layer_cache_size=48 \ |
| 22 | ro.hwui.r_buffer_cache_size=8 \ |
| 23 | ro.hwui.path_cache_size=32 \ |
| 24 | ro.hwui.gradient_cache_size=1 \ |
| 25 | ro.hwui.drop_shadow_cache_size=6 \ |
| 26 | ro.hwui.texture_cache_flushrate=0.4 \ |
| 27 | ro.hwui.text_small_cache_width=1024 \ |
| 28 | ro.hwui.text_small_cache_height=1024 \ |
| 29 | ro.hwui.text_large_cache_width=2048 \ |
| 30 | ro.hwui.text_large_cache_height=1024 |