summaryrefslogtreecommitdiff
path: root/exa/exa.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2008-04-21 10:45:11 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2008-04-21 10:45:11 +0200
commit6c95fae1e9d6b0eb64bc78eced05a6e9f5faf02e (patch)
treef416d1c8382e0281653b6ca0dcc0f08885210b54 /exa/exa.h
parent40c6be1408a1f0b236fdb28af27ae18aea0d578f (diff)
EXA: Offscreen memory eviction improvements.
* Make sure available areas are considered to have no eviction cost. This seems to help for https://bugs.freedesktop.org/show_bug.cgi?id=15513 but I'm afraid that may just be coincidence. * Only calculate eviction cost of each area once for each eviction pass. Safeguard against potential (though unlikely) division by zero. * Cosmetic enhancements: Name eviction cost related variables 'cost' instead of 'score' to emphasize that smaller values are better, update Doxygen file comment to the way eviction works now.
Diffstat (limited to 'exa/exa.h')
-rw-r--r--exa/exa.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/exa/exa.h b/exa/exa.h
index 97ae6c0a5..256209418 100644
--- a/exa/exa.h
+++ b/exa/exa.h
@@ -64,6 +64,8 @@ struct _ExaOffscreenArea {
ExaOffscreenState state;
ExaOffscreenArea *next;
+
+ unsigned eviction_cost;
};
/**