diff options
author | 2020-08-26 18:22:05 -0700 | |
---|---|---|
committer | 2020-08-28 10:39:44 -0700 | |
commit | 8cb2188b3b5b923f0a4ae2bdb73ea85c2ae00820 (patch) | |
tree | 127394526414acf3b6711e23cea499adfe45e725 /services/surfaceflinger/RegionSamplingThread.cpp | |
parent | 8735eaccd72bb6880bb02d6cca398722a01cc75e (diff) |
SurfaceFlinger: DispSync -> VsyncController
Refactor the old DispSync to separate between Vsync math (VsyncTracker)
and fence / vsync callback management (VsyncController)
Bug: 162888874
Test: examine systraces
Test: SF unit tests
Change-Id: Id275620380a21aeb0017e966910cbf24860cecef
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
-rw-r--r-- | services/surfaceflinger/RegionSamplingThread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/surfaceflinger/RegionSamplingThread.cpp b/services/surfaceflinger/RegionSamplingThread.cpp index b24855d77c..6ba1942e2b 100644 --- a/services/surfaceflinger/RegionSamplingThread.cpp +++ b/services/surfaceflinger/RegionSamplingThread.cpp @@ -38,7 +38,7 @@ #include "DisplayRenderArea.h" #include "Layer.h" #include "Promise.h" -#include "Scheduler/DispSync.h" +#include "Scheduler/VsyncController.h" #include "SurfaceFlinger.h" namespace android { @@ -249,7 +249,7 @@ void RegionSamplingThread::doSample() { // until the next vsync deadline, defer this sampling work // to a later frame, when hopefully there will be more time. DisplayStatInfo stats; - mScheduler.getDisplayStatInfo(&stats); + mScheduler.getDisplayStatInfo(&stats, systemTime()); if (std::chrono::nanoseconds(stats.vsyncTime) - now < timeForRegionSampling) { ATRACE_INT(lumaSamplingStepTag, static_cast<int>(samplingStep::waitForQuietFrame)); mDiscardedFrames++; |