Lines Matching refs:glyphSet

282 AddGlyph(GlyphSetPtr glyphSet, GlyphPtr glyph, Glyph id)  in AddGlyph()  argument
287 CheckDuplicates(&globalGlyphs[glyphSet->fdepth], "AddGlyph top global"); in AddGlyph()
290 gr = FindGlyphRef(&globalGlyphs[glyphSet->fdepth], signature, in AddGlyph()
300 globalGlyphs[glyphSet->fdepth].tableEntries++; in AddGlyph()
304 gr = FindGlyphRef(&glyphSet->hash, id, FALSE, 0); in AddGlyph()
307 FreeGlyph(gr->glyph, glyphSet->fdepth); in AddGlyph()
309 glyphSet->hash.tableEntries++; in AddGlyph()
312 CheckDuplicates(&globalGlyphs[glyphSet->fdepth], "AddGlyph bottom"); in AddGlyph()
316 DeleteGlyph(GlyphSetPtr glyphSet, Glyph id) in DeleteGlyph() argument
321 gr = FindGlyphRef(&glyphSet->hash, id, FALSE, 0); in DeleteGlyph()
325 glyphSet->hash.tableEntries--; in DeleteGlyph()
326 FreeGlyph(glyph, glyphSet->fdepth); in DeleteGlyph()
333 FindGlyph(GlyphSetPtr glyphSet, Glyph id) in FindGlyph() argument
337 glyph = FindGlyphRef(&glyphSet->hash, id, FALSE, 0)->glyph; in FindGlyph()
439 ResizeGlyphSet(GlyphSetPtr glyphSet, CARD32 change) in ResizeGlyphSet() argument
441 return (ResizeGlyphHash(&glyphSet->hash, change, FALSE) && in ResizeGlyphSet()
442 ResizeGlyphHash(&globalGlyphs[glyphSet->fdepth], change, TRUE)); in ResizeGlyphSet()
448 GlyphSetPtr glyphSet; in AllocateGlyphSet() local
455 glyphSet = dixAllocateObjectWithPrivates(GlyphSetRec, PRIVATE_GLYPHSET); in AllocateGlyphSet()
456 if (!glyphSet) in AllocateGlyphSet()
459 if (!AllocateGlyphHash(&glyphSet->hash, &glyphHashSets[0])) { in AllocateGlyphSet()
460 free(glyphSet); in AllocateGlyphSet()
463 glyphSet->refcnt = 1; in AllocateGlyphSet()
464 glyphSet->fdepth = fdepth; in AllocateGlyphSet()
465 glyphSet->format = format; in AllocateGlyphSet()
466 return glyphSet; in AllocateGlyphSet()
472 GlyphSetPtr glyphSet = (GlyphSetPtr) value; in FreeGlyphSet() local
474 if (--glyphSet->refcnt == 0) { in FreeGlyphSet()
475 CARD32 i, tableSize = glyphSet->hash.hashSet->size; in FreeGlyphSet()
476 GlyphRefPtr table = glyphSet->hash.table; in FreeGlyphSet()
482 FreeGlyph(glyph, glyphSet->fdepth); in FreeGlyphSet()
484 if (!globalGlyphs[glyphSet->fdepth].tableEntries) { in FreeGlyphSet()
485 free(globalGlyphs[glyphSet->fdepth].table); in FreeGlyphSet()
486 globalGlyphs[glyphSet->fdepth].table = 0; in FreeGlyphSet()
487 globalGlyphs[glyphSet->fdepth].hashSet = 0; in FreeGlyphSet()
490 ResizeGlyphHash(&globalGlyphs[glyphSet->fdepth], 0, TRUE); in FreeGlyphSet()
492 dixFreeObjectWithPrivates(glyphSet, PRIVATE_GLYPHSET); in FreeGlyphSet()