summaryrefslogtreecommitdiff
path: root/src/sna/sna.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-08-10 13:15:48 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-08-10 13:35:10 +0000
commit021c59f6243c51871f664e5fdd43aa00a809033a (patch)
tree9db0b7934ce3f6b863ee971424e84c9bb982c253 /src/sna/sna.h
parent4d5483c253a9a29f54f2eed9b40623c8e9de6c22 (diff)
sna/glyphs: Micro-optimise glyph drawing
When you don't have many cycles to play with, every one counts. Here we make sure we cache negative lookups for large glyphs. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r--src/sna/sna.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h
index 73870888..fe840749 100644
--- a/src/sna/sna.h
+++ b/src/sna/sna.h
@@ -155,9 +155,9 @@ struct sna_pixmap {
struct sna_glyph {
PicturePtr atlas;
- pixman_image_t *image;
struct sna_coordinate coordinate;
uint16_t size, pos;
+ pixman_image_t *image;
};
static inline WindowPtr get_root_window(ScreenPtr screen)