/* * Copyright (c) Hisilicon Technologies Co., Ltd.. 2016-2019. All rights reserved. * Description: hwc add support for vsync * Author: Hisilicon * Created: 2016.08.12 */ #ifndef HWC_VSYNC_LOOP_THREAD_H #define HWC_VSYNC_LOOP_THREAD_H #include #include "HWCDisplay.h" namespace android { class VsyncLoopThread : public Thread { public: explicit VsyncLoopThread(HWCDisplay &display); ~VsyncLoopThread() override; bool threadLoop() override; VsyncLoopThread(const VsyncLoopThread &) = delete; VsyncLoopThread& operator=(const VsyncLoopThread &) = delete; private: HWCDisplay &mDisplay; const uint32_t DELAY_FRESH_TIME = 5000; const uint32_t NORMAL_FRESH_PER_SECOND = 60; const bool TRUE = true; }; } // namespace android #endif // HWC_VSYNC_LOOP_THREAD_H