KWin
|
#include <damagejournal.h>
Public Member Functions | |
int | capacity () const |
void | setCapacity (int capacity) |
void | add (const QRegion ®ion) |
void | clear () |
QRegion | accumulate (int bufferAge, const QRegion &fallback=QRegion()) const |
QRegion | lastDamage () const |
The DamageJournal class is a helper that tracks last N damage regions.
Definition at line 20 of file damagejournal.h.
|
inline |
Accumulates the damage regions in the log up to the specified bufferAge.
If the specified buffer age value refers to a damage region older than the last one in the journal, fallback will be returned.
Definition at line 66 of file damagejournal.h.
|
inline |
Adds the specified region to the journal.
Definition at line 43 of file damagejournal.h.
|
inline |
Returns the maximum number of damage regions that can be stored in the journal.
Definition at line 26 of file damagejournal.h.
|
inline |
Clears the damage journal. Typically, one would want to clear the damage journal if a buffer swap fails for some reason.
Definition at line 55 of file damagejournal.h.
|
inline |
Definition at line 79 of file damagejournal.h.
|
inline |
Sets the maximum number of damage regions that can be stored in the journal to capacity.
Definition at line 35 of file damagejournal.h.