Lines Matching defs:SamplingOffsetCallback
98 struct SamplingOffsetCallback : DispSync::Callback { struct
99 SamplingOffsetCallback(RegionSamplingThread& samplingThread, Scheduler& scheduler, in SamplingOffsetCallback() argument
105 ~SamplingOffsetCallback() { stopVsyncListener(); } in ~SamplingOffsetCallback()
110 void startVsyncListener() { in startVsyncListener()
120 void stopVsyncListener() { in stopVsyncListener()
126 void stopVsyncListenerLocked() /*REQUIRES(mMutex)*/ { in stopVsyncListenerLocked()
133 void onDispSyncEvent(nsecs_t /*when*/, nsecs_t /*expectedVSyncTimestamp*/) final { in onDispSyncEvent()
153 RegionSamplingThread& mRegionSamplingThread;
154 Scheduler& mScheduler;
155 const std::chrono::nanoseconds mTargetSamplingOffset;
156 mutable std::mutex mMutex;
157 nsecs_t mLastCallbackTime = 0;
158 enum class Phase {
161 } mPhaseIntervalSetting /*GUARDED_BY(mMutex) macro doesnt work with unique_lock?*/
163 bool mVsyncListening /*GUARDED_BY(mMutex)*/ = false;