]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/perf/leperf/FontTableCache.h
2 **********************************************************************
3 * Copyright (C) 2003-2013, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
8 #ifndef __FONTTABLECACHE_H
10 #define __FONTTABLECACHE_H
12 #include "layout/LETypes.h"
16 struct FontTableCacheEntry
;
23 virtual ~FontTableCache();
25 const void *find(LETag tableTag
, size_t &length
) const;
28 virtual const void *readFontTable(LETag tableTag
, size_t &length
) const = 0;
29 virtual void freeFontTable(const void *table
) const;
33 void add(LETag tableTag
, const void *table
, size_t length
);
35 FontTableCacheEntry
*fTableCache
;
36 le_int32 fTableCacheCurr
;
37 le_int32 fTableCacheSize
;