Loading libs/gui/include/gui/DisplayEventReceiver.h +1 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,7 @@ public: struct VSync { uint32_t count; nsecs_t expectedVSyncTimestamp __attribute__((aligned(8))); nsecs_t deadlineTimestamp __attribute__((aligned(8))); }; struct Hotplug { Loading services/surfaceflinger/BufferLayerConsumer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ #include "BufferLayerConsumer.h" #include "Layer.h" #include "Scheduler/DispSync.h" #include "Scheduler/VsyncController.h" #include <inttypes.h> Loading services/surfaceflinger/BufferLayerConsumer.h +0 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,6 @@ namespace android { // ---------------------------------------------------------------------------- class DispSync; class Layer; class String8; Loading services/surfaceflinger/RegionSamplingThread.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -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 { Loading Loading @@ -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++; Loading services/surfaceflinger/Scheduler/DispSyncSource.cpp +1 −4 Original line number Diff line number Diff line Loading @@ -22,16 +22,13 @@ #include <utils/Trace.h> #include <mutex> #include "DispSync.h" #include "EventThread.h" #include "VsyncController.h" namespace android::scheduler { using base::StringAppendF; using namespace std::chrono_literals; // The DispSync interface has a 'repeat this callback at rate' semantic. This object adapts // VSyncDispatch's individually-scheduled callbacks so as to meet DispSync's existing semantic // for now. class CallbackRepeater { public: CallbackRepeater(VSyncDispatch& dispatch, VSyncDispatch::Callback cb, const char* name, Loading Loading
libs/gui/include/gui/DisplayEventReceiver.h +1 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,7 @@ public: struct VSync { uint32_t count; nsecs_t expectedVSyncTimestamp __attribute__((aligned(8))); nsecs_t deadlineTimestamp __attribute__((aligned(8))); }; struct Hotplug { Loading
services/surfaceflinger/BufferLayerConsumer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ #include "BufferLayerConsumer.h" #include "Layer.h" #include "Scheduler/DispSync.h" #include "Scheduler/VsyncController.h" #include <inttypes.h> Loading
services/surfaceflinger/BufferLayerConsumer.h +0 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,6 @@ namespace android { // ---------------------------------------------------------------------------- class DispSync; class Layer; class String8; Loading
services/surfaceflinger/RegionSamplingThread.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -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 { Loading Loading @@ -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++; Loading
services/surfaceflinger/Scheduler/DispSyncSource.cpp +1 −4 Original line number Diff line number Diff line Loading @@ -22,16 +22,13 @@ #include <utils/Trace.h> #include <mutex> #include "DispSync.h" #include "EventThread.h" #include "VsyncController.h" namespace android::scheduler { using base::StringAppendF; using namespace std::chrono_literals; // The DispSync interface has a 'repeat this callback at rate' semantic. This object adapts // VSyncDispatch's individually-scheduled callbacks so as to meet DispSync's existing semantic // for now. class CallbackRepeater { public: CallbackRepeater(VSyncDispatch& dispatch, VSyncDispatch::Callback cb, const char* name, Loading