From 39efa5018462ebd4d3dd0ade05dd50db2bf7ba6f Mon Sep 17 00:00:00 2001 From: Yichi Chen Date: Fri, 28 Jun 2019 20:16:51 +0800 Subject: [PATCH] SF: enable device-specific dataspace for color space agnostic surfaces To reduce the DPU loading in color conversion, we enable device-specific dataspace for color space agnostic surfaces. Since the type of surfaces usually provide gray-level surfaces to users, it can be acceptable to ignore the color conversion on them. Bug: 134783740 Bug: 135140940 Test: Check ScreenDecorOverlays in expected dataspace Test: Play HDR video on C2 and check dataspace Change-Id: Ief32f0ff3867b2e154fecd6c9ebd6610b0e6ed11 --- prebuilts/api/29.0/public/property_contexts | 1 + public/property_contexts | 1 + 2 files changed, 2 insertions(+) diff --git a/prebuilts/api/29.0/public/property_contexts b/prebuilts/api/29.0/public/property_contexts index 803a95901..5313378c1 100644 --- a/prebuilts/api/29.0/public/property_contexts +++ b/prebuilts/api/29.0/public/property_contexts @@ -394,3 +394,4 @@ ro.surface_flinger.set_idle_timer_ms u:object_r:exported_default_prop:s0 exact i ro.surface_flinger.set_touch_timer_ms u:object_r:exported_default_prop:s0 exact int ro.surface_flinger.support_kernel_idle_timer u:object_r:exported_default_prop:s0 exact bool ro.surface_flinger.use_smart_90_for_video u:object_r:exported_default_prop:s0 exact bool +ro.surface_flinger.color_space_agnostic_dataspace u:object_r:exported_default_prop:s0 exact int diff --git a/public/property_contexts b/public/property_contexts index 803a95901..5313378c1 100644 --- a/public/property_contexts +++ b/public/property_contexts @@ -394,3 +394,4 @@ ro.surface_flinger.set_idle_timer_ms u:object_r:exported_default_prop:s0 exact i ro.surface_flinger.set_touch_timer_ms u:object_r:exported_default_prop:s0 exact int ro.surface_flinger.support_kernel_idle_timer u:object_r:exported_default_prop:s0 exact bool ro.surface_flinger.use_smart_90_for_video u:object_r:exported_default_prop:s0 exact bool +ro.surface_flinger.color_space_agnostic_dataspace u:object_r:exported_default_prop:s0 exact int