From dc28b3706b61ba1326658d96400fe55faf3dcb3e Mon Sep 17 00:00:00 2001 From: Alec Mouri Date: Thu, 18 Apr 2019 21:17:13 -0700 Subject: Support repurposing idle timer to work with kernel timer. Idle timer would instead enable/disable hw vsyncs in accordance with inactivity. Bug: 130684082 Test: systrace Change-Id: I289600fc41b7ded863c9486cf6c2ab6155b06550 --- .../surfaceflinger/sysprop/SurfaceFlingerProperties.sysprop | 10 ++++++++++ services/surfaceflinger/sysprop/api/system-current.txt | 1 + 2 files changed, 11 insertions(+) (limited to 'services/surfaceflinger/sysprop') diff --git a/services/surfaceflinger/sysprop/SurfaceFlingerProperties.sysprop b/services/surfaceflinger/sysprop/SurfaceFlingerProperties.sysprop index d3690967dc..bd8aacdff6 100644 --- a/services/surfaceflinger/sysprop/SurfaceFlingerProperties.sysprop +++ b/services/surfaceflinger/sysprop/SurfaceFlingerProperties.sysprop @@ -315,3 +315,13 @@ prop { access: Readonly prop_name: "ro.surface_flinger.protected_contents" } + +# Indicates whether Scheduler's idle timer should support a display driver timeout in the kernel. +# The value of set_idle_timer_ms should be shorter in time than the timeout duration in the kernel. +prop { + api_name: "support_kernel_idle_timer" + type: Boolean + scope: System + access: Readonly + prop_name: "ro.surface_flinger.support_kernel_idle_timer" +} diff --git a/services/surfaceflinger/sysprop/api/system-current.txt b/services/surfaceflinger/sysprop/api/system-current.txt index 3c39b51f9b..dd5dbe04b3 100644 --- a/services/surfaceflinger/sysprop/api/system-current.txt +++ b/services/surfaceflinger/sysprop/api/system-current.txt @@ -19,6 +19,7 @@ package android.sysprop { method public static java.util.Optional running_without_sync_framework(); method public static java.util.Optional set_idle_timer_ms(); method public static java.util.Optional start_graphics_allocator_service(); + method public static java.util.Optional support_kernel_idle_timer(); method public static java.util.Optional use_color_management(); method public static java.util.Optional use_context_priority(); method public static java.util.Optional use_smart_90_for_video(); -- cgit v1.2.3-59-g8ed1b