summaryrefslogtreecommitdiff
path: root/render/glyphstr.h
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2006-01-03 22:06:23 +0000
committerEric Anholt <anholt@freebsd.org>2006-01-03 22:06:23 +0000
commit601ab861b46a62b0742ffd3e937c4fab129664f0 (patch)
treea3d9c641c83283e941302a9495d4d5234b493eed /render/glyphstr.h
parent1729fc882ceec392331566c95efd5968fe9e97fd (diff)
Add glyph privates for Xgl, which uses them to implement a glyph cache. EXA
would probably also like to do this. This breaks module ABI for EXA and XAA, and likely breaks proprietary drivers as well.
Diffstat (limited to 'render/glyphstr.h')
-rw-r--r--render/glyphstr.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/render/glyphstr.h b/render/glyphstr.h
index f4777a248..5f38bc9cf 100644
--- a/render/glyphstr.h
+++ b/render/glyphstr.h
@@ -29,6 +29,8 @@
#include <X11/extensions/renderproto.h>
#include "picture.h"
#include "screenint.h"
+#include "regionstr.h"
+#include "miscstruct.h"
#define GlyphFormat1 0
#define GlyphFormat4 1
@@ -39,6 +41,7 @@
typedef struct _Glyph {
CARD32 refcnt;
+ DevUnion *devPrivates;
CARD32 size; /* info + bitmap */
xGlyphInfo info;
/* bits follow */
@@ -103,9 +106,29 @@ ResetGlyphSetPrivateIndex (void);
Bool
_GlyphSetSetNewPrivate (GlyphSetPtr glyphSet, int n, pointer ptr);
+void
+ResetGlyphPrivates (void);
+
+int
+AllocateGlyphPrivateIndex (void);
+
+Bool
+AllocateGlyphPrivate (ScreenPtr pScreen,
+ int index2,
+ unsigned amount);
+
Bool
GlyphInit (ScreenPtr pScreen);
+Bool
+GlyphFinishInit (ScreenPtr pScreen);
+
+void
+GlyphUninit (ScreenPtr pScreen);
+
+GlyphHashSetPtr
+FindGlyphHashSet (CARD32 filled);
+
GlyphRefPtr
FindGlyphRef (GlyphHashPtr hash, CARD32 signature, Bool match, GlyphPtr compare);