Loading services/surfaceflinger/Scheduler/LayerInfo.h +1 −1 Original line number Diff line number Diff line Loading @@ -272,7 +272,7 @@ private: // Used for sanitizing the heuristic data. If two frames are less than // this period apart from each other they'll be considered as duplicates. static constexpr nsecs_t kMinPeriodBetweenFrames = Fps(120.f).getPeriodNsecs(); static constexpr nsecs_t kMinPeriodBetweenFrames = Fps(240.f).getPeriodNsecs(); // Used for sanitizing the heuristic data. If two frames are more than // this period apart from each other, the interval between them won't be // taken into account when calculating average frame rate. Loading services/surfaceflinger/tests/unittests/LayerInfoTest.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -126,7 +126,7 @@ TEST_F(LayerInfoTest, ignoresSmallPeriods) { std::deque<FrameTimeData> frameTimes; constexpr auto kExpectedFps = Fps(50.0f); constexpr auto kExpectedPeriod = kExpectedFps.getPeriodNsecs(); constexpr auto kSmallPeriod = Fps(150.0f).getPeriodNsecs(); constexpr auto kSmallPeriod = Fps(250.0f).getPeriodNsecs(); constexpr int kNumIterations = 10; for (int i = 1; i <= kNumIterations; i++) { frameTimes.push_back(FrameTimeData{.presentTime = kExpectedPeriod * i, Loading Loading
services/surfaceflinger/Scheduler/LayerInfo.h +1 −1 Original line number Diff line number Diff line Loading @@ -272,7 +272,7 @@ private: // Used for sanitizing the heuristic data. If two frames are less than // this period apart from each other they'll be considered as duplicates. static constexpr nsecs_t kMinPeriodBetweenFrames = Fps(120.f).getPeriodNsecs(); static constexpr nsecs_t kMinPeriodBetweenFrames = Fps(240.f).getPeriodNsecs(); // Used for sanitizing the heuristic data. If two frames are more than // this period apart from each other, the interval between them won't be // taken into account when calculating average frame rate. Loading
services/surfaceflinger/tests/unittests/LayerInfoTest.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -126,7 +126,7 @@ TEST_F(LayerInfoTest, ignoresSmallPeriods) { std::deque<FrameTimeData> frameTimes; constexpr auto kExpectedFps = Fps(50.0f); constexpr auto kExpectedPeriod = kExpectedFps.getPeriodNsecs(); constexpr auto kSmallPeriod = Fps(150.0f).getPeriodNsecs(); constexpr auto kSmallPeriod = Fps(250.0f).getPeriodNsecs(); constexpr int kNumIterations = 10; for (int i = 1; i <= kNumIterations; i++) { frameTimes.push_back(FrameTimeData{.presentTime = kExpectedPeriod * i, Loading