You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
817 B

/*
* 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 <utils/Thread.h>
#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