Home | History | Annotate | Download | only in drm_hwcomposer

Lines Matching full:vsync

17 #define LOG_TAG "hwc-vsync-worker"
35 : Worker("vsync", HAL_PRIORITY_URGENT_DISPLAY),
68 * Returns the timestamp of the next vsync in phase with last_timestamp_.
91 struct timespec vsync;
92 int ret = clock_gettime(CLOCK_MONOTONIC, &vsync);
99 ALOGW("Vsync worker active with conn=%p refresh=%f\n", conn,
103 kOneSecondNs / refresh, vsync.tv_sec * kOneSecondNs + vsync.tv_nsec);
104 vsync.tv_sec = phased_timestamp / kOneSecondNs;
105 vsync.tv_nsec = phased_timestamp - (vsync.tv_sec * kOneSecondNs);
107 ret = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &vsync, NULL);
112 *timestamp = (int64_t)vsync.tv_sec * kOneSecondNs + (int64_t)vsync.tv_nsec;
163 * the next subsequent requested vsync. This is unavoidable since we can't
164 * call the vsync hook while holding the thread lock.
170 if (procs && procs->vsync)
171 procs->vsync(procs, display, timestamp);