diff options
| author | 2019-04-05 10:32:50 -0700 | |
|---|---|---|
| committer | 2019-04-08 11:01:12 -0700 | |
| commit | 8f1ee7fdcf5c602aa87a93b727a696bb8e9eddb0 (patch) | |
| tree | 6674593c7df2539979ca549d7802783caf24d1e4 /services/surfaceflinger/Layer.h | |
| parent | 09bd3920155f0961b303d1cdd0f6027135aff36d (diff) | |
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
Diffstat (limited to 'services/surfaceflinger/Layer.h')
| -rw-r--r-- | services/surfaceflinger/Layer.h | 3 |
1 files changed, 3 insertions, 0 deletions
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<scheduler::LayerHistory::LayerHandle> mSchedulerLayerHandle; |