From 014f714999cd2241a9aaf02834a6cdc8cca9ff68 Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Thu, 14 Mar 2019 17:04:05 -0700 Subject: [PATCH] Walleye offsets for GPU composition Window animations now have rounded corners, meaning that the shader that we use is more expensive than it used to be. Because of this, we need to adjust the SF offsets, to make sure that we'll have enough time to finish the GPU composition without dropping frames. These offsets as similar to blueline's, adjusted slightly because we were getting false "frame missed" signals if composition starts too early. Bug: 122347746 Test: systrace Change-Id: I8173e12b006bc1cab6b4cb0b3a5db9f9b3489819 --- device.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/device.mk b/device.mk index a5fa593b..e0f3f660 100755 --- a/device.mk +++ b/device.mk @@ -722,3 +722,13 @@ PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.use_color_management=tr # Must align with HAL types Dataspace # The data space of wide color gamut composition preference is Dataspace::DISPLAY_P3 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.wcg_composition_dataspace=143261696 + +# Early phase offset configuration for SurfaceFlinger +PRODUCT_PROPERTY_OVERRIDES += \ + debug.sf.early_phase_offset_ns=1500000 +PRODUCT_PROPERTY_OVERRIDES += \ + debug.sf.early_app_phase_offset_ns=1500000 +PRODUCT_PROPERTY_OVERRIDES += \ + debug.sf.early_gl_phase_offset_ns=3000000 +PRODUCT_PROPERTY_OVERRIDES += \ + debug.sf.early_gl_app_phase_offset_ns=15000000 \ No newline at end of file