diff options
author | ceisserer <none@none> | 2010-05-28 11:37:44 -0700 |
---|---|---|
committer | ceisserer <none@none> | 2010-05-28 11:37:44 -0700 |
commit | 15e677fe29164e1d11f364eba1c541587ddb239e (patch) | |
tree | 4b6071c16cc574276e56e03df5af421a9036fbd4 /src/share/native/sun/font/fontscalerdefs.h | |
parent | cd0377f26ab30e5455bb31546b2609c56e2eaa01 (diff) |
6307603: [X11] Use RENDER extension for complex operations done in software
Reviewed-by: bae, igor, prr
Diffstat (limited to 'src/share/native/sun/font/fontscalerdefs.h')
-rw-r--r-- | src/share/native/sun/font/fontscalerdefs.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/share/native/sun/font/fontscalerdefs.h b/src/share/native/sun/font/fontscalerdefs.h index d7fd1fbe6..b83f7e00e 100644 --- a/src/share/native/sun/font/fontscalerdefs.h +++ b/src/share/native/sun/font/fontscalerdefs.h @@ -84,15 +84,26 @@ typedef float t2kScalar; #define t2kScalarAverage(a, b) (((a) + (b)) / (t2kScalar)(2)) + /* managed: 1 means the glyph has a hardware cached + * copy, and its freeing is managed by the the usual + * 2D disposer code. + * A value of 0 means its either unaccelerated (and so has no cellInfos) + * or we want to free this in a different way. + * The field uses previously unused padding, so doesn't enlarge + * the structure. + */ +#define UNMANAGED_GLYPH 0 +#define MANAGED_GLYPH 1 typedef struct GlyphInfo { float advanceX; float advanceY; UInt16 width; UInt16 height; UInt16 rowBytes; + UInt8 managed; float topLeftX; float topLeftY; - struct _CacheCellInfo *cellInfo; + void *cellInfo; UInt8 *image; } GlyphInfo; |