Lines Matching refs:glyphSet
307 AddGlyph (GlyphSetPtr glyphSet, GlyphPtr glyph, Glyph id)
312 CheckDuplicates (&globalGlyphs[glyphSet->fdepth], "AddGlyph top global");
315 gr = FindGlyphRef (&globalGlyphs[glyphSet->fdepth], signature,
327 globalGlyphs[glyphSet->fdepth].tableEntries++;
331 gr = FindGlyphRef (&glyphSet->hash, id, FALSE, 0);
334 FreeGlyph (gr->glyph, glyphSet->fdepth);
336 glyphSet->hash.tableEntries++;
339 CheckDuplicates (&globalGlyphs[glyphSet->fdepth], "AddGlyph bottom");
343 DeleteGlyph (GlyphSetPtr glyphSet, Glyph id)
348 gr = FindGlyphRef (&glyphSet->hash, id, FALSE, 0);
353 glyphSet->hash.tableEntries--;
354 FreeGlyph (glyph, glyphSet->fdepth);
361 FindGlyph (GlyphSetPtr glyphSet, Glyph id)
365 glyph = FindGlyphRef (&glyphSet->hash, id, FALSE, 0)->glyph;
471 ResizeGlyphSet (GlyphSetPtr glyphSet, CARD32 change)
473 return (ResizeGlyphHash (&glyphSet->hash, change, FALSE) &&
474 ResizeGlyphHash (&globalGlyphs[glyphSet->fdepth], change, TRUE));
480 GlyphSetPtr glyphSet;
488 glyphSet = dixAllocateObjectWithPrivates(GlyphSetRec, PRIVATE_GLYPHSET);
489 if (!glyphSet)
492 if (!AllocateGlyphHash (&glyphSet->hash, &glyphHashSets[0]))
494 free(glyphSet);
497 glyphSet->refcnt = 1;
498 glyphSet->fdepth = fdepth;
499 glyphSet->format = format;
500 return glyphSet;
507 GlyphSetPtr glyphSet = (GlyphSetPtr) value;
509 if (--glyphSet->refcnt == 0)
511 CARD32 i, tableSize = glyphSet->hash.hashSet->size;
512 GlyphRefPtr table = glyphSet->hash.table;
519 FreeGlyph (glyph, glyphSet->fdepth);
521 if (!globalGlyphs[glyphSet->fdepth].tableEntries)
523 free(globalGlyphs[glyphSet->fdepth].table);
524 globalGlyphs[glyphSet->fdepth].table = 0;
525 globalGlyphs[glyphSet->fdepth].hashSet = 0;
528 ResizeGlyphHash (&globalGlyphs[glyphSet->fdepth], 0, TRUE);
530 dixFreeObjectWithPrivates(glyphSet, PRIVATE_GLYPHSET);