Home | History | Annotate | Download | only in drm_hwcomposer

Lines Matching defs:vsync

17 #define LOG_TAG "hwc-vsync-worker"
35 : Worker("vsync", HAL_PRIORITY_URGENT_DISPLAY),
55 ALOGE("Failed to lock vsync worker lock %d\n", ret);
63 ALOGE("Failed to unlock vsync worker lock %d\n", ret);
72 ALOGE("Failed to lock vsync worker lock %d\n", ret);
82 ALOGE("Failed to unlock vsync worker lock %d\n", ret);
90 * Returns the timestamp of the next vsync in phase with last_timestamp_.
113 struct timespec vsync;
114 int ret = clock_gettime(CLOCK_MONOTONIC, &vsync);
121 ALOGW("Vsync worker active with conn=%p refresh=%f\n", conn,
125 kOneSecondNs / refresh, vsync.tv_sec * kOneSecondNs + vsync.tv_nsec);
126 vsync.tv_sec = phased_timestamp / kOneSecondNs;
127 vsync.tv_nsec = phased_timestamp - (vsync.tv_sec * kOneSecondNs);
129 ret = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &vsync, NULL);
134 *timestamp = (int64_t)vsync.tv_sec * kOneSecondNs + (int64_t)vsync.tv_nsec;
192 * the next subsequent requested vsync. This is unavoidable since we can't
193 * call the vsync hook while holding the thread lock.
199 if (procs && procs->vsync)
200 procs->vsync(procs, display, timestamp);