SurfaceFlinger: tune LayerHistory to be less aggressive
Increase the thresholds to mark layer as "relevant" to be less agressive
when changing refresh rate based on content.
Bug: 136558136
Test: 1) put icons in drawer/folder on homescreen
2) tap drawer to expand
3) tap homescreen to contract drawer
4) goto 2), repeating quickly.
Test: libsurfaceflinger_unnittest
Change-Id: I2a9b696f267d93720408a41dceb4acb7dc80bd69
diff --git a/services/surfaceflinger/Scheduler/LayerInfo.h b/services/surfaceflinger/Scheduler/LayerInfo.h
index 66df9dc..a733781 100644
--- a/services/surfaceflinger/Scheduler/LayerInfo.h
+++ b/services/surfaceflinger/Scheduler/LayerInfo.h
@@ -129,8 +129,8 @@
private:
std::deque<nsecs_t> mElements;
- static constexpr size_t HISTORY_SIZE = 10;
- static constexpr std::chrono::nanoseconds HISTORY_TIME = 500ms;
+ static constexpr size_t HISTORY_SIZE = 90;
+ static constexpr std::chrono::nanoseconds HISTORY_TIME = 1s;
};
public: