render: move lastFrameDamage to CMonitor
This commit is contained in:
parent
fe54dcb4eb
commit
515a363ecd
6 changed files with 12 additions and 11 deletions
|
|
@ -10,10 +10,12 @@ int ratHandler(void* data) {
|
|||
|
||||
CMonitor::CMonitor() {
|
||||
wlr_damage_ring_init(&damage);
|
||||
pixman_region32_init(&lastFrameDamage);
|
||||
}
|
||||
|
||||
CMonitor::~CMonitor() {
|
||||
wlr_damage_ring_finish(&damage);
|
||||
pixman_region32_fini(&lastFrameDamage);
|
||||
}
|
||||
|
||||
void CMonitor::onConnect(bool noRule) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue