From 4fa55dce1fd0f3b4e759509287d74730d51a1ebe Mon Sep 17 00:00:00 2001 From: Brian Lindahl Date: Thu, 15 Jun 2023 14:22:21 -0600 Subject: [PATCH] Force HALs to explicitly enable legacy method for clearing buffer caches Some HAL implementations can't support setLayerBuffer multiple times to clear the per-layer buffer caches. Therefore, default this behavior to disabled, and allow HALs to explcitily enable this behavior to obtain the necessary memory savings. Test: play videos with both true and false on both HIDL and AIDL Bug: 285561686 Ignore-AOSP-First: Submitted in separate changeset to AOSP Change-Id: If3a4f31ee0de179915e7b33c1fdb145d44658fd9 --- prebuilts/api/34.0/private/property_contexts | 1 + 1 file changed, 1 insertion(+) diff --git a/prebuilts/api/34.0/private/property_contexts b/prebuilts/api/34.0/private/property_contexts index d7818ee25..3afb6616c 100644 --- a/prebuilts/api/34.0/private/property_contexts +++ b/prebuilts/api/34.0/private/property_contexts @@ -1324,6 +1324,7 @@ ro.surface_flinger.enable_layer_caching u:object_r:surfaceflin ro.surface_flinger.display_update_imminent_timeout_ms u:object_r:surfaceflinger_prop:s0 exact int ro.surface_flinger.uclamp.min u:object_r:surfaceflinger_prop:s0 exact int ro.surface_flinger.ignore_hdr_camera_layers u:object_r:surfaceflinger_prop:s0 exact bool +ro.surface_flinger.clear_slots_with_set_layer_buffer u:object_r:surfaceflinger_prop:s0 exact bool ro.sf.disable_triple_buffer u:object_r:surfaceflinger_prop:s0 exact bool ro.sf.lcd_density u:object_r:surfaceflinger_prop:s0 exact int