From 8f1ee7fdcf5c602aa87a93b727a696bb8e9eddb0 Mon Sep 17 00:00:00 2001 From: Ady Abraham Date: Fri, 5 Apr 2019 10:32:50 -0700 Subject: SurfaceFlinger: handle wallpaper scenario in Scheduler Use the fact that a layer contains wallpaper in Scheduler's algorithm when picking a refresh rate. Wallpaper should be presented in the lowest active refresh rate to preserve power. Test: systrace during wallpaper Bug: 124065567 Change-Id: Ibb18e62eaf1a6b9b3ab1ec18a3135fb17c8f57fc --- services/surfaceflinger/Layer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'services/surfaceflinger/Layer.h') diff --git a/services/surfaceflinger/Layer.h b/services/surfaceflinger/Layer.h index 66e35b6136..f4545e0538 100644 --- a/services/surfaceflinger/Layer.h +++ b/services/surfaceflinger/Layer.h @@ -885,6 +885,9 @@ protected: // Can only be accessed with the SF state lock held. bool mChildrenChanged{false}; + // Window types from WindowManager.LayoutParams + const int mWindowType; + // This is populated if the layer is registered with Scheduler for tracking purposes. std::unique_ptr mSchedulerLayerHandle; -- cgit v1.2.3-59-g8ed1b