summaryrefslogtreecommitdiff
path: root/exa/exa_priv.h
diff options
context:
space:
mode:
authorFredrik Höglund <fredrik@kde.org>2008-03-31 21:15:50 +0200
committerFredrik Höglund <fredrik@kde.org>2008-03-31 21:15:50 +0200
commit93d876891dbba41b920a9a29a5de77f647f43928 (patch)
tree62191a3b791723bc326b9a323356884e4c77b8bb /exa/exa_priv.h
parent7034484f0887ea0f8ab956515f2d9301ea5842ce (diff)
EXA: Improve the algorithm used for tracking offscreen pixmap use.
Replace the current score keeping algorithm with a rolling counter that's incremented in ExaOffscreenMarkUsed, with the previous value being stored in the area. exaOffscreenAlloc uses the difference between the counter value and the value in the area when deciding which area to evict. It now also takes the size of the areas into account, and favors evicting smaller areas. The credit for these ideas goes to Michel Dänzer.
Diffstat (limited to 'exa/exa_priv.h')
-rw-r--r--exa/exa_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/exa/exa_priv.h b/exa/exa_priv.h
index 89f47184f..e41f46aba 100644
--- a/exa/exa_priv.h
+++ b/exa/exa_priv.h
@@ -120,6 +120,7 @@ typedef struct {
Bool checkDirtyCorrectness;
unsigned disableFbCount;
Bool optimize_migration;
+ unsigned offScreenCounter;
} ExaScreenPrivRec, *ExaScreenPrivPtr;
/*