Use pixman glyph API

Søren Sandmann sandmann at cs.au.dk
Wed May 30 20:55:12 PDT 2012


Keith Packard <keithp at keithp.com> writes:

> Are you duplicating the glyph image data in pixman? Or just saving the pointer?

I'm duplicating the glyph image data. It's similar in concept to how
hardware drivers duplicate the image data in textures.

It could perhaps be interesting to share the data between X and pixman,
but there are some advantages to the duplicating too:

- pixman can assume that no one is changing the properties of the glyph
  images so various information can be cached related to them.

- the images could eventually be stored in a more efficient ways. Say by
  putting them all into one big, narrow and tall image or by enforcing a
  stride that is a multiple of 8.

If we were to try and share the data, it should probably be done by
moving the whole concept of GlyphSets into pixman. That was actually the
first thing I looked at, but as I recall it turned out to require major
surgery to large parts of the server.


Søren


More information about the xorg-devel mailing list