Lines Matching defs:SamplingOffsetCallback
91 struct SamplingOffsetCallback : DispSync::Callback { struct
92 SamplingOffsetCallback(RegionSamplingThread& samplingThread, Scheduler& scheduler, in SamplingOffsetCallback() function
98 ~SamplingOffsetCallback() { stopVsyncListener(); } in ~SamplingOffsetCallback()
103 void startVsyncListener() { in startVsyncListener()
114 void stopVsyncListener() { in stopVsyncListener()
120 void stopVsyncListenerLocked() /*REQUIRES(mMutex)*/ { in stopVsyncListenerLocked()
129 void onDispSyncEvent(nsecs_t /* when */) final { in onDispSyncEvent()
152 RegionSamplingThread& mRegionSamplingThread;
153 Scheduler& mScheduler;
154 const std::chrono::nanoseconds mTargetSamplingOffset;
155 mutable std::mutex mMutex;
156 nsecs_t mLastCallbackTime = 0;
157 enum class Phase {
160 } mPhaseIntervalSetting /*GUARDED_BY(mMutex) macro doesnt work with unique_lock?*/
162 bool mVsyncListening /*GUARDED_BY(mMutex)*/ = false;